summaryrefslogtreecommitdiff
path: root/pkg/osx
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-02-19 19:14:22 +0100
committerKali Kaneko <kali@leap.se>2018-02-19 19:37:43 +0100
commit6de3b4b1fb22a503fe04b3e5678a45aa81657c55 (patch)
tree7a05dfe99e761246708d7183aada662e2148f5c6 /pkg/osx
parent89dbc2c7b7f6c41b5520c3633d1f90ddb0162f37 (diff)
[pkg] osx packaging changes for riseupvpn
Diffstat (limited to 'pkg/osx')
-rwxr-xr-xpkg/osx/makeicons.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/osx/makeicons.sh b/pkg/osx/makeicons.sh
new file mode 100755
index 00000000..823af826
--- /dev/null
+++ b/pkg/osx/makeicons.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+sizes=(16 32 64 128 256 512)
+largfile='icon_512x512@2x.png'
+if [ ! -f "$largfile" ]; then
+ convert -background none -resize 1024x1024 "$1" "$largfile"
+fi
+for s in "${sizes[@]}"; do
+ echo $s
+ convert -background none -resize ${s}x${s} "$largfile" "icon_${s}x$s.png"
+done
+
+cp 'icon_32x32.png' 'icon_16x16@2x.png'
+mv 'icon_64x64.png' 'icon_32x32@2x.png'
+cp 'icon_256x256.png' 'icon_128x128@2x.png'
+cp 'icon_512x512.png' 'icon_256x256@2x.png'
+
+mkdir icon.iconset
+mv icon_*x*.png icon.iconset
+iconutil -c icns icon.iconset