summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkali <kali@win>2018-06-28 21:59:11 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2018-07-03 01:59:35 +0200
commitade90be44d10cad7f43fd89130bb99b019f6545e (patch)
tree8467eda4d373a8264606c3b6fd2a5365dde3212e /Makefile
parent6b375cb6b0620fc7005e4181631e52297149b59f (diff)
[pkg] get openvpn from leap
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1142e21..3700872 100755
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,15 @@ SYSTRAY := 0xacab.org/leap/bitmask-systray
STAGING := staging
deps_win:
- choco install -y golang python upx nssm nsis
+ choco install -y golang python upx nssm nsis wget 7zip
+openvpn_win:
+ mkdir staging\openvpn
+ wget https://downloads.leap.se/thirdparty/windows/openvpn-x86_64-w64-mingw32.tar.bz2 -O staging/openvpn/openvpn.tar.bz2
+ 7z e -y -ostaging/openvpn/ staging/openvpn/openvpn.tar.bz2
+ 7z e -y -r -ostaging/openvpn/ staging/openvpn/openvpn.tar *.dll
+ 7z e -y -r -ostaging/openvpn/ staging/openvpn/openvpn.tar *.exe
+ copy .\staging\openvpn\openvpn.exe .\staging
+ copy .\staging\openvpn\*.dll .\staging
helper_win:
go build -ldflags "-s -w" -o $(STAGING)/bitmask_helper.exe .\helper
upx $(STAGING)/bitmask_helper.exe