1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-01-31 19:45:53 +00:00
discover/build.sh

21 lines
503 B
Bash
Raw Normal View History

2019-07-30 21:33:50 +03:00
echo "removing old full-build"
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/
echo "copying special files"
cp .npmrc full-build/
2019-07-30 21:33:50 +03:00
echo "building new frontend"
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/
echo "archiving the build"
{
cd full-build;
zip -r ../app.zip ./
}
echo "Finished. Use the app.zip file."