Skip to content
Snippets Groups Projects
Unverified Commit ade90be4 authored by kali's avatar kali Committed by Kali Kaneko
Browse files

[pkg] get openvpn from leap

parent 6b375cb6
Branches
No related tags found
No related merge requests found
...@@ -2,7 +2,15 @@ SYSTRAY := 0xacab.org/leap/bitmask-systray ...@@ -2,7 +2,15 @@ SYSTRAY := 0xacab.org/leap/bitmask-systray
STAGING := staging STAGING := staging
deps_win: 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: helper_win:
go build -ldflags "-s -w" -o $(STAGING)/bitmask_helper.exe .\helper go build -ldflags "-s -w" -o $(STAGING)/bitmask_helper.exe .\helper
upx $(STAGING)/bitmask_helper.exe upx $(STAGING)/bitmask_helper.exe
......
!include "MUI.nsh" !include "MUI.nsh"
Name "RiseupVPN" Name "RiseupVPN"
RequestExecutionLevel admin
Outfile "..\dist\RiseupVPN-installer.exe" Outfile "..\dist\RiseupVPN-installer.exe"
;TODO make the installdir configurable - and set it in the registry. ;TODO make the installdir configurable - and set it in the registry.
InstallDir "C:\Program Files\RiseupVPN\" InstallDir "C:\Program Files\RiseupVPN\"
RequestExecutionLevel admin
!define BITMAP_FILE riseupvpn.bmp !define BITMAP_FILE riseupvpn.bmp
...@@ -87,6 +86,9 @@ Section "InstallService" ...@@ -87,6 +86,9 @@ Section "InstallService"
ExecWait '"$INSTDIR\nssm.exe" set riseupvpn-helper AppDirectory "$INSTDIR"' ExecWait '"$INSTDIR\nssm.exe" set riseupvpn-helper AppDirectory "$INSTDIR"'
ExecWait '"$INSTDIR\nssm.exe" start riseupvpn-helper' ExecWait '"$INSTDIR\nssm.exe" start riseupvpn-helper'
; why are these here?
Delete "C:\riseupvpn.ico"
Delete "C:\riseupvpn.png"
SectionEnd SectionEnd
Section "Uninstall" Section "Uninstall"
......
..\staging\bitmask_helper.exe ..\staging\bitmask_helper.exe
..\staging\bitmask-systray.exe ..\staging\bitmask-systray.exe
..\staging\openssl.exe ..\staging\libcrypto-1_1-x64.dll
..\staging\openvpn.exe
..\staging\ssleay32.dll
..\staging\libeay32.dll
..\staging\liblzo2-2.dll ..\staging\liblzo2-2.dll
..\staging\libpkcs11-helper-1.dll ..\staging\libpkcs11-helper-1.dll
..\staging\libssl-1_1-x64.dll
..\staging\openvpn.exe
..\staging\padlock.dll
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment