From 9f57ac3b67ce222a251fb30c4cc4999d85572e1a Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 15 Jan 2024 00:14:56 +0000 Subject: Added call to dylibbundler --- README | 3 +++ exe2app.bash | 4 ++++ 2 files changed, 7 insertions(+) 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 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" -- cgit v1.2.3