summaryrefslogtreecommitdiff
path: root/docker/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/builder.sh')
-rwxr-xr-xdocker/builder.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/docker/builder.sh b/docker/builder.sh
new file mode 100755
index 0000000..dad7800
--- /dev/null
+++ b/docker/builder.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+export DESTDIR=/bitmask-vpn.orig/deploy/
+rm -rf /bitmask-vpn
+cp -r /bitmask-vpn.orig /bitmask-vpn
+cd /bitmask-vpn
+make prepare
+make build
+case $XBUILD in
+ win)
+ make package_win
+ ;;
+ osx)
+ make package_osx
+ ;;
+ yes)
+ make packages
+ ;;
+esac
+cp /bitmask-vpn/deploy/* $DESTDIR