Automatically generate screenshots

This commit is contained in:
Neale Pickett 2015-07-06 18:34:36 -06:00
parent 27a7491809
commit a76d81c651
1 changed files with 21 additions and 0 deletions

21
screenshot.sh Executable file
View File

@ -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