summaryrefslogtreecommitdiff
path: root/docker/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Makefile')
-rw-r--r--docker/Makefile13
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: