furnace/res/make-icon.sh

16 lines
442 B
Bash
Raw Normal View History

2021-12-29 22:47:17 +00:00
#!/bin/bash
sizes=(16 32 64 128 256 512)
2021-12-29 22:51:51 +00:00
if [ ! -e icon.iconset ]; then
mkdir icon.iconset
2021-12-29 22:50:10 +00:00
fi
for i in "${sizes[@]}"; do
2021-12-29 22:47:17 +00:00
echo "making $i..."
2022-01-06 23:38:58 +00:00
convert logo.png -filter Mitchell -scale "$i"x"$i" icon.iconset/icon_"$i"x"$i".png
2021-12-29 22:47:17 +00:00
done
2021-12-29 22:50:10 +00:00
for i in "${sizes[@]}"; do
2021-12-29 22:47:17 +00:00
echo "making $i@2x..."
2022-01-06 23:38:58 +00:00
convert logo.png -filter Mitchell -scale "$((i*2))"x"$((i*2))" icon.iconset/icon_"$i"x"$i""@2x.png"
2021-12-29 22:47:17 +00:00
done
2022-01-07 22:41:47 +00:00
convert icon.iconset/icon_256x256.png icon.ico