19 lines
920 B
Plaintext
19 lines
920 B
Plaintext
|
# converts a 1024x1024 png - here named 'AppIcon.png' - to all size relevant to create
|
||
|
# an .icns file in AppIcon.iconset subfolder and then creates AppIcon.icns file
|
||
|
|
||
|
mkdir AppIcon.iconset
|
||
|
|
||
|
sips -z 16 16 AppIcon.png --out AppIcon.iconset/icon_16x16.png
|
||
|
sips -z 32 32 AppIcon.png --out AppIcon.iconset/icon_16x16@2.png
|
||
|
sips -z 32 32 AppIcon.png --out AppIcon.iconset/icon_32x32.png
|
||
|
sips -z 64 64 AppIcon.png --out AppIcon.iconset/icon_32x32@2.png
|
||
|
sips -z 128 128 AppIcon.png --out AppIcon.iconset/icon_128x128.png
|
||
|
sips -z 256 256 AppIcon.png --out AppIcon.iconset/icon_128x128@2.png
|
||
|
sips -z 256 256 AppIcon.png --out AppIcon.iconset/icon_256x256.png
|
||
|
sips -z 512 512 AppIcon.png --out AppIcon.iconset/icon_256x256@2.png
|
||
|
sips -z 512 512 AppIcon.png --out AppIcon.iconset/icon_512x512.png
|
||
|
cp AppIcon.png AppIcon.iconset/icon_512x512@2.png
|
||
|
|
||
|
iconutil -c icns AppIcon.iconset
|
||
|
|
||
|
# rm -R AppIcon.iconset
|