1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-23 04:42:24 +03:00
guide/favicon/gen.sh
2016-05-10 23:44:20 +03:00

24 lines
404 B
Bash
Executable File

#!/bin/bash
# see https://github.com/audreyr/favicon-cheat-sheet
# TODO: make larger icons for Android/iOS
ghc gen.hs
rm -f favicon.ico
for n in 16 24 32 48 64
do
echo "generating $n x $n"
./gen -o "favicon-$n.png" -w "$n" -h "$n"
optipng -quiet -o7 "favicon-$n.png"
done
convert favicon-*.png favicon.ico
rm -f favicon-*.png gen gen.o gen.hi
echo ""
echo "now move favicon.ico to static/"