summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-01-15 00:14:56 +0000
committerIan C <ianc@noddybox.co.uk>2024-01-15 00:14:56 +0000
commit9f57ac3b67ce222a251fb30c4cc4999d85572e1a (patch)
tree4a319ad784459ca138f019d827fee4b32002ecd3
parent42685bde21b9c08d75835ae98a54e7039423825a (diff)
Added call to dylibbundler
-rw-r--r--README3
-rwxr-xr-xexe2app.bash4
2 files changed, 7 insertions, 0 deletions
diff --git a/README b/README
index 931ad5b..a4755c2 100644
--- a/README
+++ b/README
@@ -4,6 +4,9 @@
exe2app.bash is a script to create a macOS Application bundle from a
passed executable and icon file and other information.
+It depends on the tools makeicns and dylibbundler. Both are available on
+Brew.
+
usage:
exe2app.bash -x <executable path>
diff --git a/exe2app.bash b/exe2app.bash
index b8616e2..f1c8b7f 100755
--- a/exe2app.bash
+++ b/exe2app.bash
@@ -59,12 +59,16 @@ log Generating $APPNAME from $EXE
mkdir -p "$APP/Contents"
mkdir -p "$APP/Contents/MacOS"
+mkdir -p "$APP/Contents/libs"
mkdir -p "$APP/Contents/Resources"
# Copy executable
#
cp "$EXE" "$APP/Contents/MacOS"
+# Patch executable
+dylibbundler -b -x "$APP/Contents/MacOS/$EXENAME" -d "$APP/Contents/libs"
+
# Create icons
#
makeicns -in "$ICON" -out "$APP/Contents/Resources/$APPNAME.icns"