From 283a8e6612583536918efaba9adc30cd5ffebe2c Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Thu, 7 May 2020 18:02:23 +0200 Subject: [pkg] build snap in docker --- docker/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'docker/Makefile') diff --git a/docker/Makefile b/docker/Makefile index 5fd5121..d2bc1f2 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -16,7 +16,7 @@ UNINSTALLER_SIGNED="../build/windows/staging/uninstall-signed.exe" SIGNCODE=osslsigncode SECRETS="leap/secrets/windoze" -build: +build: mkdir -p mods && cp ../go.mod ../go.sum mods/ && cp -r ../packages mods/ docker build -t $(REGISTRY)/$(IMAGE):latest . deps: @@ -28,6 +28,17 @@ prune: login: docker login $(REGISTRY) +package_snap: + docker run \ + -e PROVIDER=$(PROVIDER) \ + -e TYPE=snap \ + -v `python3 -c 'import os; print(os.path.abspath(".."))'`:/bitmask-vpn.host \ + --cpus="4" \ + -it --rm \ + $(REGISTRY)/$(IMAGE):latest \ + /builder.sh + + package_win: clean_win package_win_stage_1 sign_win_uninstaller_in_host package_win_stage_2 sign_win_installer_in_host clean_win: -- cgit v1.2.3