summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0cb2208..ab93fcf 100755
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,14 @@ openvpn_win:
7z e -y -r -ostaging/openvpn/ staging/openvpn/openvpn.tar *.exe
copy .\staging\openvpn\openvpn.exe .\staging
copy .\staging\openvpn\*.dll .\staging
+openvpn_cross_win:
+ mkdir -p staging/openvpn
+ wget https://build.openvpn.net/downloads/releases/latest/tap-windows-latest-stable.exe -O $(STAGING)/openvpn/tap-windows.exe
+ wget https://downloads.leap.se/thirdparty/windows/openvpn-x86_64-w64-mingw32.tar.bz2 -O $(STAGING)/openvpn/openvpn.tar.bz2
+ tar xvjf $(STAGING)/openvpn/openvpn.tar.bz2 -C $(STAGING)/openvpn/
+ cp $(STAGING)/openvpn/bin/openvpn.exe $(STAGING)/openvpn
+ cp $(STAGING)/openvpn/bin/*.dll $(STAGING)
+ cp $(STAGING)/openvpn/lib/engines-1_1/*.dll $(STAGING)
helper_win:
go build -ldflags "-s -w" -o $(STAGING)/$(HELPER_BIN).exe ./helper
upx $(STAGING)/$(HELPER_BIN).exe