summaryrefslogtreecommitdiff
path: root/exe2app.bash
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-01-14 23:49:56 +0000
committerIan C <ianc@noddybox.co.uk>2024-01-14 23:49:56 +0000
commit42685bde21b9c08d75835ae98a54e7039423825a (patch)
tree34689b23a81fb299471b2877235ad088d47d718c /exe2app.bash
parent740b89c64f16a5d0fda344366985b5754e594501 (diff)
Initial working version
Diffstat (limited to 'exe2app.bash')
-rwxr-xr-xexe2app.bash6
1 files changed, 4 insertions, 2 deletions
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