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

Commit 5ee62d4

Browse files
committed
Create Big Sur-style icons
1 parent 3544dc6 commit 5ee62d4

File tree

5 files changed

+559
-3
lines changed

5 files changed

+559
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ out/
2121
images/app-icons/png/16x16.png
2222
images/app-icons/png/32x32.png
2323
images/app-icons/png/512x512.png
24-
images/app-icons/png/1024x1024.png
24+
images/app-icons/png/1024x1024.png
25+
images/app-icons/mac/*.png

bin/create-icons.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ inkscape -w 256 -h 256 "../icon-purple.svg" -o "./png/256x256-dev.png"
2727
# Build Mac .icns
2828
declare -a sizes=("16" "32" "512" "1024")
2929
for size in "${sizes[@]}"; do
30-
inkscape -w $size -h $size "../icon-color.svg" -o "./png/${size}x${size}.png"
30+
inkscape -w $size -h $size "../icon-color.svg" -o "./png/${size}x${size}.png"
3131
done
32-
icnsutil compose -f "mac/icon.icns" "./png/16x16.png" "./png/32x32.png" "./png/128x128.png" "./png/512x512.png" "./png/1024x1024.png"
32+
33+
mkdir -p fakeapp.app
34+
npx iconsur set fakeapp.app -l -i "png/1024x1024.png" -o "mac/1024x1024.png"
35+
declare -a sizes=("16x16" "32x32" "128x128" "512x512")
36+
for size in "${sizes[@]}"; do
37+
magick "mac/1024x1024.png" -resize "${size}" "mac/${size}.png"
38+
done
39+
icnsutil compose -f "mac/icon.icns" ./mac/*.png
3340

3441
# Build Windows icon
3542
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

31.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)