script: added app icon to mac bundle

Extended the script to create an iconset from our logo and define it as icon for the bundled application.
This commit is contained in:
Eberhard Graether
2015-03-11 13:23:04 +01:00
parent ca85d5a5d3
commit d6ad7614af
3 changed files with 21 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

+2
View File
@@ -34,5 +34,7 @@
<string></string>
<key>NSHighResolutionCapable</key>
<true/>
<key>CFBundleIconFile</key>
<string>icon</string>
</dict>
</plist>
+19 -1
View File
@@ -54,7 +54,7 @@ echo -e $INFO "Copying bundle contents."
cp $APP_NAME $APP_PATH
cp bundle_info.plist $BUNDLE_PATH/Contents/Info.plist
cp -R ../data $RES_DIR/data
rm $RES_DIR/data/log/*
echo -e $INFO "Copying dynamic libraries."
for LIB_PATH in ${DYNLIB_PATHS[@]}
@@ -117,4 +117,22 @@ otool -L $PLUGIN_DIR/libqcocoa.dylib
echo -e $INFO "App dependencies"
otool -L $APP_PATH
echo -e $INFO "Create icon"
ICON=../data/gui/logo_1024_1024.png
ICON_SET=$RES_DIR/icon.iconset
mkdir -p $ICON_SET
convert $ICON -resize 16x16 $ICON_SET/icon_16x16.png
convert $ICON -resize 32x32 $ICON_SET/icon_16x16@2x.png
convert $ICON -resize 32x32 $ICON_SET/icon_32x32.png
convert $ICON -resize 64x64 $ICON_SET/icon_32x32@2x.png
convert $ICON -resize 128x128 $ICON_SET/icon_128x128.png
convert $ICON -resize 256x256 $ICON_SET/icon_128x128@2x.png
convert $ICON -resize 256x256 $ICON_SET/icon_256x256.png
convert $ICON -resize 512x512 $ICON_SET/icon_256x256@2x.png
convert $ICON -resize 512x512 $ICON_SET/icon_512x512.png
convert $ICON -resize 1024x1024 $ICON_SET/icon_512x512@2x.png
iconutil -c icns -o $RES_DIR/icon.icns $ICON_SET
echo -e $SUCCESS "Installed bundle successfully!"