Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 54b9bcb

Browse files
committed
Build small icons for macOS as well
1 parent 712b180 commit 54b9bcb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bin/create-icons.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ magick -background none "../icon-color.svg" -resize "256x256" "./png/256x256.png
2020
magick -background none "../icon-purple.svg" -resize "256x256" "./png/256x256-dev.png"
2121

2222
# Build Mac .icns
23-
magick -background none "../icon-color.svg" -resize "512x512" "./png/512x512.png"
24-
magick -background none "../icon-color.svg" -resize "1024x1024" "./png/1024x1024.png"
25-
icnsutil compose -f "mac/icon.icns" "./png/512x512.png" "./png/1024x1024.png"
26-
rm "./png/512x512.png"
27-
rm "./png/1024x1024.png"
23+
declare -a sizes=("16x16" "32x32" "512x512" "1024x1024")
24+
for size in "${sizes[@]}"; do
25+
magick -background none "../icon-color.svg" -resize "${size}" "./png/${size}.png"
26+
done
27+
icnsutil compose -f "mac/icon.icns" "./png/16x16.png" "./png/32x32.png" "./png/128x128.png" "./png/512x512.png" "./png/1024x1024.png"
28+
rm "./png/16x16.png" "./png/32x32.png" "./png/512x512.png" "./png/1024x1024.png"
2829

2930
# Build Windows icon
3031
magick -background none "../icon-color.svg" -define icon:auto-resize=16,32,48,64,128,256 "./win/icon.ico"

images/app-icons/mac/icon.icns

12.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)