From 8f7f4acc0de0560ac7e310c56ddbc7f1cfb95fa7 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 5 Oct 2016 11:33:32 +1300 Subject: [PATCH] chore(build): add a build script to archive binary --- build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 000000000..ad0e11508 --- /dev/null +++ b/build.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +VERSION=$1 + +if [[ $# -ne 1 ]] ; then + echo "Usage: $(basename $0) " + exit 1 +fi + +grunt release +rm -rf /tmp/portainer-build && mkdir -pv /tmp/portainer-build/portainer +mv dist/* /tmp/portainer-build/portainer +cd /tmp/portainer-build +tar cvpfz portainer-${VERSION}.tar.gz portainer + +exit 0