Embed styles in gold library

This commit is contained in:
Christian Muehlhaeuser committed 2019-12-06 01:34:27 +01:00
1 parent 6f31dbf5ec
commit 6fe32ed145
10 files changed
+200 -5

No files matched your search

Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
for style in ./styles/*.json; do
echo "Generating screenshot for ${style}"
filename="`basename -s .json ${style}`.png"
light=""
if [[ $style == *"light"* ]]; then
light="-l"
fi
./termshot ${light} -o ./styles/ -f "$filename" ./gold -s ${style}
pngcrush -ow "./styles/$filename"
done