diff options
author | kali <kali@win> | 2020-10-09 12:39:27 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2020-10-13 19:08:52 +0200 |
commit | e4a2efb527fb09b548c14b13d28d0780941ca72d (patch) | |
tree | 8527fb1678d1f8d4465cb7cee02d32a45a688ae8 /gui/build.sh | |
parent | 4d9d578902aae37d62ea3218efa2b062cb7f893f (diff) |
[pkg] windows fixes
Several fixes for missing paths. Refactor qt installer; fetch pre-built
binaries from an existing installation on build system (needs to be
automated); add windows icon.
- Resolves: #362
Diffstat (limited to 'gui/build.sh')
-rwxr-xr-x | gui/build.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gui/build.sh b/gui/build.sh index 080b1fe..8b336fa 100755 --- a/gui/build.sh +++ b/gui/build.sh @@ -15,6 +15,7 @@ QTBUILD=build/qt RELEASE=$QTBUILD/release PLATFORM=$(uname -s) +LDFLAGS="" if [ "$TARGET" == "" ] then @@ -51,10 +52,14 @@ function buildGoLib { CGO_CFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" CGO_LDFLAGS="-g -O2 -mmacosx-version-min=$OSX_TARGET" fi + if [ "$PLATFORM" == "MINGW64_NT-10.0" ] + then + LDFLAGS="-H=windowsgui" + fi if [ "$XBUILD" == "no" ] then echo "[+] Building Go library with standard Go compiler" - CGO_ENABLED=1 GOOS=$GOOS CC=$CC CGO_CFLAGS=$CGO_CFLAGS CGO_LDFLAGS=$CGO_LDFLAGS go build -buildmode=c-archive -o $TARGET_GOLIB $SOURCE_GOLIB + CGO_ENABLED=1 GOOS=$GOOS CC=$CC CGO_CFLAGS=$CGO_CFLAGS CGO_LDFLAGS=$CGO_LDFLAGS go build -ldflags $LDFLAGS -buildmode=c-archive -o $TARGET_GOLIB $SOURCE_GOLIB fi if [ "$XBUILD" == "$WIN64" ] then @@ -85,6 +90,10 @@ function renameOutput { mv $RELEASE/bitmask.app/ $RELEASE/$TARGET.app/ echo "[+] App is in" $RELEASE/$TARGET fi + if [ "$PLATFORM" == "MINGW64_NT-10.0" ] + then + mv $RELEASE/bitmask.exe $RELEASE/$TARGET.exe + fi } echo "[+] Building BitmaskVPN" |