wallet-svr/boundle.sh
2022-10-28 10:32:09 +08:00

15 lines
446 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
mkdir tmp
mv dist tmp/dist
mv node_modules tmp/node_modules
cp start.json tmp/start.json
echo 'move node_modules to tmp/node_modules' >> boundle.log
cd ./tmp/ && tar -zcvf wallet-svr.tar.gz ./
cd ..
mkdir target && mv ./tmp/wallet-svr.tar.gz ./target/wallet-svr.tar.gz
echo 'all done' 2>&1 >> boundle.log