diff options
author | kali <kali@leap.se> | 2021-07-14 19:18:50 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-07-14 19:21:18 +0200 |
commit | 10644a698c8a42232cb53a4372e3a09857fba0be (patch) | |
tree | d9aaf1406c789cb66ff19dc417c92940457d1f96 | |
parent | fa0bc2bbf53378f160fd66f6bdf7b8c106f71d16 (diff) |
[pkg] appname in osx
- Resolves: #443
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | gui/build.sh | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -140,7 +140,7 @@ build_gui: relink_vendor @echo "==============BUILD GUI===============" @echo "TARGET: ${TARGET}" @echo "VENDOR_PATH: ${VENDOR_PATH}" - @XBUILD=no QMAKE=${QMAKE} LRELEASE=${LRELEASE} TARGET=${TARGET} VENDOR_PATH=${VENDOR_PATH} gui/build.sh --skip-golib + @XBUILD=no QMAKE=${QMAKE} LRELEASE=${LRELEASE} TARGET=${TARGET} VENDOR_PATH=${VENDOR_PATH} APPNAME=${APPNAME} gui/build.sh --skip-golib @echo "============BUILD GUI=================" build: build_golib build_helper build_gui diff --git a/gui/build.sh b/gui/build.sh index 9dd84dd..e65aaf2 100755 --- a/gui/build.sh +++ b/gui/build.sh @@ -8,6 +8,7 @@ set -e XBUILD=${XBUILD-no} LRELEASE=${LRELEASE-lrelease} VENDOR_PATH=${VENDOR_PATH-providers/riseup} +APPNAME=${APPNAME-BitmaskVPN} OSX_TARGET=10.11 WIN64="win64" @@ -100,6 +101,9 @@ function renameOutput { then rm -rf $RELEASE/$TARGET.app mv $RELEASE/bitmask.app/ $RELEASE/$TARGET.app/ + mv $RELEASE/$TARGET.app/Contents/MacOS/bitmask $RELEASE/$TARGET.app/Contents/MacOS/$APPNAME + # bsd sed + sed -i '' "s/>bitmask/>${APPNAME}/" $RELEASE/$TARGET.app/Contents/Info.plist echo "[+] App is in" $RELEASE/$TARGET else # for MINGWIN or CYGWIN mv $RELEASE/bitmask.exe $RELEASE/$TARGET.exe |