-
-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate the .icns for the macOS app
Instead of adding it to the repo.
- Loading branch information
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
tmpd=$TMPDIR/beehive.iconset | ||
icns=$TMPDIR/beehive.icns | ||
logfile=$TMPDIR/build-icns.log | ||
|
||
cleanup() { | ||
rm -rf $tmpd | ||
rm -f $logfile | ||
} | ||
|
||
trap cleanup EXIT | ||
|
||
{ | ||
mkdir $tmpd | ||
sips -z 16 16 assets/logo.png --out $tmpd/icon_16x16.png | ||
sips -z 32 32 assets/logo.png --out $tmpd/[email protected] | ||
sips -z 32 32 assets/logo.png --out $tmpd/icon_32x32.png | ||
sips -z 64 64 assets/logo.png --out $tmpd/[email protected] | ||
sips -z 128 128 assets/logo.png --out $tmpd/icon_128x128.png | ||
sips -z 256 256 assets/logo.png --out $tmpd/[email protected] | ||
sips -z 256 256 assets/logo.png --out $tmpd/icon_256x256.png | ||
sips -z 512 512 assets/logo.png --out $tmpd/[email protected] | ||
sips -z 512 512 assets/logo.png --out $tmpd/icon_512x512.png | ||
cp assets/logo.png $tmpd/[email protected] | ||
iconutil -c icns $tmpd | ||
} > $logfile 2>&1 | ||
|
||
echo $icns |