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

Commit f81bf50

Browse files
committed
build: Create script to build icons for the application
1 parent 7906c8b commit f81bf50

File tree

13 files changed

+70
-100
lines changed

13 files changed

+70
-100
lines changed

bin/create-icons.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
script_dir=$(realpath $(dirname $0))
4+
cd "${script_dir}/../images/app-icons"
5+
magick -background none "../icon-color.svg" -resize 180x180 "./ios/apple-touch-icon.png"
6+
7+
# Build PNGs
8+
magick -background none "../icon-color.svg" -resize "128x128" "./png/128x128.png"
9+
magick -background none "../icon-color.svg" -resize "256x256" "./png/256x256.png"
10+
magick -background none "../icon-purple.svg" -resize "256x256" "./png/256x256-dev.png"
11+
12+
# Build Mac .icns
13+
magick -background none "../icon-color.svg" -resize "512x512" "./png/512x512.png"
14+
icnsutil compose -f "mac/icon.icns" "./png/512x512.png"
15+
rm "./png/512x512.png"
16+
17+
# Build Windows icon
18+
magick -background none "../icon-color.svg" -define icon:auto-resize=16,32,48,64,128,256 "./win/icon.ico";
-4.54 KB
Loading

images/app-icons/mac/icon.icns

-19.7 KB
Binary file not shown.

images/app-icons/png/128x128.png

-6.66 KB
Loading

images/app-icons/png/256x256-dev.png

-9.07 KB
Loading

images/app-icons/png/256x256.png

-9.48 KB
Loading

images/app-icons/win/icon.ico

788 Bytes
Binary file not shown.

images/icon-black.svg

Lines changed: 4 additions & 11 deletions
Loading

images/icon-color.svg

Lines changed: 26 additions & 10 deletions
Loading

images/icon-grey.svg

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)