From e6a04e5a7b7c669a03e6d782c795e40fedce526c Mon Sep 17 00:00:00 2001 From: kali Date: Wed, 27 Jun 2018 20:27:18 +0200 Subject: [pkg] compile and pack helper --- Makefile | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e12223d..99ffb4d 100755 --- a/Makefile +++ b/Makefile @@ -1,10 +1,20 @@ - -build_osx: - echo "[+] building osx" -build_win: +SYSTRAY := 0xacab.org/leap/bitmask-systray +STAGING := staging + +deps_win: + choco install -y golang python upx nssm nsis +helper_win: + go build -ldflags "-s -w" -o $(STAGING)/bitmask_helper.exe .\helper + upx $(STAGING)/bitmask_helper.exe +systray_win: + go get -u $(SYSTRAY) + go build -tags "standalone" -ldflags "-H windowsgui -s -w" -o $(STAGING)/bitmask-systray.exe $(SYSTRAY) +build_win: helper_win + echo "[+] building windows" if not exist dist mkdir dist make -C win - echo "[+] building windows" - "C:\Program Files (x86)\NSIS\makensis.exe" win/RiseupVPN-installer.nsi -build_snap: - echo "[+] building snap" + "C:\Program Files (x86)\NSIS\makensis.exe" win/RiseupVPN-installer.nsi +build_osx: + echo "[+] building osx" +build_snap: + echo "[+] building snap" -- cgit v1.2.3