From c4d1bf5a07c199069d24dd7f3ac30923b841eda3 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 14 Nov 2017 11:12:29 +0000 Subject: [PATCH] Fix build-release script to put stuff in a folder --- bin/build-releases | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/build-releases b/bin/build-releases index 0a840d2..1abdb98 100755 --- a/bin/build-releases +++ b/bin/build-releases @@ -2,19 +2,24 @@ VERSION=`git describe --tags` +if [ ! -d ../WebApp-Releases ]; then + echo "Making new Releases Directory" + mkdir ../WebApp-Releases +fi + echo "Building releases for $VERSION" echo "Building Prod Release..." ng build --prod -tar -czf ../LocalLoop-Web-prod-$VERSION.tar.gz dist +tar -czf ../WebApp-Releases/LocalLoop-Web-prod-$VERSION.tar.gz dist echo "Building Dev Release..." ng build --dev -tar -cvzf ../LocalLoop-Web-dev-$VERSION.tar.gz dist +tar -czf ../WebApp-Releases/LocalLoop-Web-dev-$VERSION.tar.gz dist echo "Cleaning up build artefacts..."