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

28 lines
736 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [[ "${NODE_ENV}" != "production" ]]; then
export WALLET_MNEMONIC='erupt point century seek certain escape solution flee elegant hard please pen'
export WALLET_PASSWORD='dev_password'
fi
2019-07-30 21:33:50 +03:00
echo "removing old full-build"
rm -rf full-build app.zip
echo "compiling contracts"
2019-08-07 17:53:04 +02:00
./node_modules/.bin/embark build
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"
./node_modules/.bin/react-scripts build
2019-07-30 21:33:50 +03:00
echo "copying new frontend"
mkdir full-build/frontend
2019-07-30 21:33:50 +03:00
cp -r build/* full-build/frontend/
echo "archiving the build"
{
cd full-build;
zip -r ../app.zip ./
}
echo "Finished. Use the app.zip file."