-
Notifications
You must be signed in to change notification settings - Fork 125
/
iconset.sh
executable file
·15 lines (14 loc) · 787 Bytes
/
iconset.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
!#/bin/sh
mkdir gfx/icon.iconset
sips -z 16 16 gfx/icon.png --out gfx/icon.iconset/icon_16x16.png
sips -z 32 32 gfx/icon.png --out gfx/icon.iconset/[email protected]
sips -z 32 32 gfx/icon.png --out gfx/icon.iconset/icon_32x32.png
sips -z 64 64 gfx/icon.png --out gfx/icon.iconset/[email protected]
sips -z 128 128 gfx/icon.png --out gfx/icon.iconset/icon_128x128.png
sips -z 256 256 gfx/icon.png --out gfx/icon.iconset/[email protected]
sips -z 256 256 gfx/icon.png --out gfx/icon.iconset/icon_256x256.png
sips -z 512 512 gfx/icon.png --out gfx/icon.iconset/[email protected]
sips -z 512 512 gfx/icon.png --out gfx/icon.iconset/icon_512x512.png
cp gfx/icon.png gfx/icon.iconset/[email protected]
iconutil -c icns gfx/icon.iconset
rm -R gfx/icon.iconset