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

[pkg] compile and pack helper

parent 8b0ad0c1
No related branches found
No related tags found
No related merge requests found
SYSTRAY := 0xacab.org/leap/bitmask-systray
STAGING := staging
build_osx: deps_win:
echo "[+] building osx" choco install -y golang python upx nssm nsis
build_win: 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 if not exist dist mkdir dist
make -C win make -C win
echo "[+] building windows"
"C:\Program Files (x86)\NSIS\makensis.exe" win/RiseupVPN-installer.nsi "C:\Program Files (x86)\NSIS\makensis.exe" win/RiseupVPN-installer.nsi
build_osx:
echo "[+] building osx"
build_snap: build_snap:
echo "[+] building snap" echo "[+] building snap"
...@@ -21,3 +21,9 @@ Dependencies (Windows) ...@@ -21,3 +21,9 @@ Dependencies (Windows)
* nsis * nsis
* nssm * nssm
Building (Windows)
------------------------
make deps_win
make build_win
!include "MUI.nsh" !include "MUI.nsh"
Name "$app_name" Name "$app_name"
RequestExecutionLevel admin
Outfile "..\dist\$app_name-installer.exe" Outfile "..\dist\$app_name-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\$app_name\" InstallDir "C:\Program Files\$app_name\"
RequestExecutionLevel admin
!define BITMAP_FILE riseupvpn.bmp !define BITMAP_FILE riseupvpn.bmp
...@@ -78,6 +77,9 @@ Section "InstallService" ...@@ -78,6 +77,9 @@ Section "InstallService"
ExecWait '"$INSTDIR\nssm.exe" set $app_name_lower-helper AppDirectory "$INSTDIR"' ExecWait '"$INSTDIR\nssm.exe" set $app_name_lower-helper AppDirectory "$INSTDIR"'
ExecWait '"$INSTDIR\nssm.exe" start $app_name_lower-helper' ExecWait '"$INSTDIR\nssm.exe" start $app_name_lower-helper'
; why are these here?
Delete "C:\$app_name_lower.ico"
Delete "C:\$app_name_lower.png"
SectionEnd SectionEnd
Section "Uninstall" Section "Uninstall"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment