Fix build-release script to put stuff in a folder

This commit is contained in:
Tom Bloor 2017-11-14 11:12:29 +00:00
parent 46d5eef360
commit 28ef88cd3d

View file

@ -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..."