summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README4
-rwxr-xr-xexe2app.bash6
2 files changed, 6 insertions, 4 deletions
diff --git a/README b/README
index 08b3d3b..931ad5b 100644
--- a/README
+++ b/README
@@ -17,8 +17,8 @@ exe2app.bash -x <executable path>
The path to the executable to run as the app.
<icon path>
- The path to the image to use as an icon. Imagemagick convert is used
- to generate the icons, so anything that can understand should work.
+ The path to the image to use as an icon. makeicns is used to generate
+ the icons, so anything that can understand should work.
<created app path>
The name of the generated app. The app will be named as the basename
diff --git a/exe2app.bash b/exe2app.bash
index 737027b..b8616e2 100755
--- a/exe2app.bash
+++ b/exe2app.bash
@@ -59,7 +59,7 @@ log Generating $APPNAME from $EXE
mkdir -p "$APP/Contents"
mkdir -p "$APP/Contents/MacOS"
-mkdir -p "$APP/Contents/MacOS/lib"
+mkdir -p "$APP/Contents/Resources"
# Copy executable
#
@@ -67,7 +67,7 @@ cp "$EXE" "$APP/Contents/MacOS"
# Create icons
#
-convert $ICON -resize 512x512 "$APP/Contents/$APPNAME.png"
+makeicns -in "$ICON" -out "$APP/Contents/Resources/$APPNAME.icns"
# Create the plist file
#
@@ -90,6 +90,8 @@ cat > "$APP/Contents/Info.plist" << EOF
<string>$CREATOR</string>
<key>CFBundleExecutable</key>
<string>$EXENAME</string>
+<key>CFBundleIconFile</key>
+<string>$APPNAME.icns</string>
</dict>
</plist>
EOF