summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkali <kali@win>2018-06-27 20:27:18 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2018-06-27 20:34:15 +0200
commite6a04e5a7b7c669a03e6d782c795e40fedce526c (patch)
treeaa4d1ce1cd17c5bf33351f8844a140933cd8cef1 /Makefile
parent8b0ad0c146015cfeef6abd4373ca99a3b4e57826 (diff)
[pkg] compile and pack helper
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile26
1 files changed, 18 insertions, 8 deletions
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"