wallet-svr/boundle.sh
2022-11-28 17:34:28 +08:00

16 lines
483 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
cp package.json tmp/package.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