mirror of
https://github.com/tildearrow/furnace.git
synced 2024-10-31 18:12:40 +00:00
15 lines
442 B
Bash
Executable file
15 lines
442 B
Bash
Executable file
#!/bin/bash
|
|
sizes=(16 32 64 128 256 512)
|
|
if [ ! -e icon.iconset ]; then
|
|
mkdir icon.iconset
|
|
fi
|
|
for i in "${sizes[@]}"; do
|
|
echo "making $i..."
|
|
convert logo.png -filter Mitchell -scale "$i"x"$i" icon.iconset/icon_"$i"x"$i".png
|
|
done
|
|
for i in "${sizes[@]}"; do
|
|
echo "making $i@2x..."
|
|
convert logo.png -filter Mitchell -scale "$((i*2))"x"$((i*2))" icon.iconset/icon_"$i"x"$i""@2x.png"
|
|
done
|
|
|
|
convert icon.iconset/icon_256x256.png icon.ico
|