wallet-svr/boundle.sh
2022-10-26 14:38:04 +08:00

13 lines
378 B
Bash
Executable File

#!/bin/bash
source /etc/profile
npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log
npm run build
mv node_modules dist/node_modules
echo 'move node_modules to dist/node_modules' >> boundle.log
cd ./dist/ && tar -zcvf ghost.tar.gz ./
cd ..
mkdir target && mv ./dist/ghost.tar.gz ./target/ghost.tar.gz
echo 'all done' 2>&1 >> boundle.log