mirror of https://github.com/dap-ps/discover.git
improve build script
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e30573391e
commit
8caec366dd
13
build.sh
13
build.sh
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue