improve build script

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-05 14:26:46 -04:00
parent e30573391e
commit 8caec366dd
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 11 additions and 2 deletions

View File

@ -1,11 +1,20 @@
echo "removing old full-build"
rm -rf full-build
rm -rf full-build app.zip
echo "compiling contracts"
./node_modules/.bin/embark build testnet
echo "creating new full-build"
mkdir full-build
cp -r back-end/* full-build/
echo "copying special files"
cp .npmrc full-build/
echo "building new frontend"
yarn run build
echo "copying new frontend"
rm -rf full-build/frontend/*
cp -r build/* full-build/frontend/
echo "Finished. Use your full-build folder"
echo "archiving the build"
{
cd full-build;
zip -r ../app.zip ./
}
echo "Finished. Use the app.zip file."