diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-05-07 18:02:23 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-05-07 18:02:23 +0200 |
commit | 283a8e6612583536918efaba9adc30cd5ffebe2c (patch) | |
tree | 05441956d3a71b20b642779e41857c608a81e8ab /docker/Makefile | |
parent | 954045fabeb91a2da9a72a38f8a19a2e94c56bad (diff) |
[pkg] build snap in docker
Diffstat (limited to 'docker/Makefile')
-rw-r--r-- | docker/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
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: |