mirror of
https://github.com/dap-ps/discover.git
synced 2025-02-12 09:17:32 +00:00
* No need for long paths * Full paths needed * Make sure to ignore full-build * Updates build script for prod
21 lines
495 B
Bash
Executable File
21 lines
495 B
Bash
Executable File
echo "removing old full-build"
|
|
rm -rf full-build app.zip
|
|
echo "compiling contracts"
|
|
./node_modules/.bin/embark build
|
|
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 "archiving the build"
|
|
{
|
|
cd full-build;
|
|
zip -r ../app.zip ./
|
|
}
|
|
echo "Finished. Use the app.zip file."
|