diff options
-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" |