mirror of https://github.com/nealey/FontFace
Automatically generate screenshots
This commit is contained in:
parent
27a7491809
commit
a76d81c651
|
@ -0,0 +1,21 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
mkdir -p screenshots
|
||||
for pbw in pbw/*.pbw; do
|
||||
bn=$(basename $pbw .pbw)
|
||||
img=screenshots/$bn.png
|
||||
|
||||
if [ -f $img ]; then
|
||||
echo "$img already exists, skipping"
|
||||
continue
|
||||
fi
|
||||
|
||||
pebble install $pbw
|
||||
sleep 0.75
|
||||
fn=$(pebble screenshot 2>&1 | grep -o pebble-screenshot_.*png)
|
||||
sleep 0.5
|
||||
mv $fn $img
|
||||
echo $img
|
||||
done
|
Loading…
Reference in New Issue