summaryrefslogtreecommitdiff
path: root/docker/builder.sh
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-05-07 18:02:23 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-05-07 18:02:23 +0200
commit283a8e6612583536918efaba9adc30cd5ffebe2c (patch)
tree05441956d3a71b20b642779e41857c608a81e8ab /docker/builder.sh
parent954045fabeb91a2da9a72a38f8a19a2e94c56bad (diff)
[pkg] build snap in docker
Diffstat (limited to 'docker/builder.sh')
-rwxr-xr-xdocker/builder.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/docker/builder.sh b/docker/builder.sh
index a7a2a40..f9577f3 100755
--- a/docker/builder.sh
+++ b/docker/builder.sh
@@ -7,7 +7,15 @@ rm -rf "${GUESTDIR}"
cp -r "${HOSTDIR}" "${GUESTDIR}"
cd "${GUESTDIR}"
make prepare
-make build
+case $TYPE in
+ snap)
+ echo "[+] Building SNAP"
+ make package_snap
+ ;;
+ default)
+ make build
+ ;;
+esac
case $XBUILD in
win)
if [ "$STAGE" = "1" ]; then
@@ -29,5 +37,8 @@ case $XBUILD in
yes)
make packages
;;
+ default)
+ echo "no XBUILD set..."
+ ;;
esac
cp "${GUESTDIR}"/deploy/* $DESTDIR