summaryrefslogtreecommitdiff
path: root/convert.sh
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-03-27 21:33:07 +0200
committerMinteck <contact@minteck.org>2022-03-27 21:33:07 +0200
commit5ac113fbe6cf5b317775197fc163b22892146630 (patch)
treeb9b181941c27ae76593d69c5b3a3e243770a2351 /convert.sh
parenta805652f0061840dff8664e37d84dd7a21a5fdae (diff)
downloaddesktop-5ac113fbe6cf5b317775197fc163b22892146630.tar.gz
desktop-5ac113fbe6cf5b317775197fc163b22892146630.tar.bz2
desktop-5ac113fbe6cf5b317775197fc163b22892146630.zip
Commit
Diffstat (limited to 'convert.sh')
-rw-r--r--convert.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/convert.sh b/convert.sh
new file mode 100644
index 0000000..a4be769
--- /dev/null
+++ b/convert.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+rm -Rfvd icon.iconset
+rm icon.icns
+rm splashicon.icns
+rm splashicon.ico
+mkdir icon.iconset
+sips -z 16 16 splashicon.png --out icon.iconset/icon_16x16.png
+sips -z 32 32 splashicon.png --out icon.iconset/icon_16x16@2x.png
+sips -z 32 32 splashicon.png --out icon.iconset/icon_32x32.png
+sips -z 64 64 splashicon.png --out icon.iconset/icon_32x32@2x.png
+sips -z 128 128 splashicon.png --out icon.iconset/icon_128x128.png
+sips -z 256 256 splashicon.png --out icon.iconset/icon_128x128@2x.png
+sips -z 256 256 splashicon.png --out icon.iconset/icon_256x256.png
+sips -z 512 512 splashicon.png --out icon.iconset/icon_256x256@2x.png
+sips -z 512 512 splashicon.png --out icon.iconset/icon_512x512.png
+sips -z 1024 1024 splashicon.png --out icon.iconset/icon_512x512@2x.png
+iconutil --convert icns icon.iconset
+mv icon.icns splashicon.icns
+convert splashicon.png \
+ \( -clone 0 -resize 16x16 \) \
+ \( -clone 0 -resize 32x32 \) \
+ \( -clone 0 -resize 48x48 \) \
+ \( -clone 0 -resize 64x64 \) \
+ \( -clone 0 -resize 128x128 \) \
+ \( -clone 0 -resize 256x256 \) \
+ \( -clone 0 -resize 512x512 \) \
+-delete 0 -alpha remove -colors 256 splashicon.ico
+rm -Rfvd icon.iconset \ No newline at end of file