-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jfeist/add-osx-icon
added icon to OSX app, which is also registered for .ipynb files
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
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,15 @@ | ||
#!/bin/bash | ||
|
||
echo "generating .icns file for mac app..." | ||
echo "NOTE: this will produce one warning message, because there is no" | ||
echo " 1024x1024 icon that could be used to for the 'retina' 512x512 icon" | ||
|
||
iconsetdir=nbopen.iconset | ||
mkdir -p ${iconsetdir} | ||
for size in 16 32 128 256 512; do | ||
s2x=$((size*2)) | ||
cp icons/ipynb_icon_${size}x${size}.png ${iconsetdir}/icon_${size}x${size}.png | ||
cp icons/ipynb_icon_${s2x}x${s2x}.png ${iconsetdir}/icon_${size}x${size}@2x.png | ||
done | ||
iconutil -c icns ${iconsetdir} | ||
rm -r ${iconsetdir} |
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