diff options
author | Ian C <ianc@noddybox.co.uk> | 2024-01-15 00:14:56 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2024-01-15 00:14:56 +0000 |
commit | 9f57ac3b67ce222a251fb30c4cc4999d85572e1a (patch) | |
tree | 4a319ad784459ca138f019d827fee4b32002ecd3 | |
parent | 42685bde21b9c08d75835ae98a54e7039423825a (diff) |
Added call to dylibbundler
-rw-r--r-- | README | 3 | ||||
-rwxr-xr-x | exe2app.bash | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -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" |