2019-07-30 21:33:50 +03:00
|
|
|
echo "removing old full-build"
|
2019-08-05 14:26:46 -04:00
|
|
|
rm -rf full-build app.zip
|
|
|
|
echo "compiling contracts"
|
|
|
|
./node_modules/.bin/embark build testnet
|
2019-07-30 21:33:50 +03:00
|
|
|
echo "creating new full-build"
|
|
|
|
mkdir full-build
|
|
|
|
cp -r back-end/* full-build/
|
2019-08-05 14:26:46 -04:00
|
|
|
echo "copying special files"
|
|
|
|
cp .npmrc full-build/
|
2019-07-30 21:33:50 +03:00
|
|
|
echo "building new frontend"
|
2019-08-05 10:11:59 -04:00
|
|
|
yarn run build
|
2019-07-30 21:33:50 +03:00
|
|
|
echo "copying new frontend"
|
|
|
|
rm -rf full-build/frontend/*
|
|
|
|
cp -r build/* full-build/frontend/
|
2019-08-05 14:26:46 -04:00
|
|
|
echo "archiving the build"
|
|
|
|
{
|
|
|
|
cd full-build;
|
|
|
|
zip -r ../app.zip ./
|
|
|
|
}
|
|
|
|
echo "Finished. Use the app.zip file."
|