You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
787 B
21 lines
787 B
#!/bin/bash
|
|
BASE_DIR=$(cd `dirname $0`/.. && pwd)
|
|
|
|
cd ~/workspace/shuili
|
|
mvn clean
|
|
tar -zcvf shuili-admin-src.tar.gz --exclude=.git --exclude=.idea --exclude=logs --exclude=target --exclude=*.tar.gz ./
|
|
mvn package -Dmaven.test.skip=true
|
|
|
|
cd ~/workspace/shuili-vue
|
|
git checkout release-sy-v1.0.0
|
|
git pull
|
|
git clean
|
|
tar -zcvf shuili-vue-src.tar.gz --exclude=.git --exclude=.idea --exclude=logs --exclude=target --exclude=*.tar.gz --exclude=dist --exclude=node_modules ./
|
|
nvm use v16.20.1
|
|
|
|
yarn&&yarn build
|
|
tar -zcvf dist.tar.gz dist
|
|
mv ~/workspace/shuili/shuili-admin/target/shuili-admin.tar.gz $BASE_DIR/sbin
|
|
mv ~/workspace/shuili/shuili-admin-src.tar.gz $BASE_DIR/sbin
|
|
mv ~/workspace/shuili-vue/shuili-vue-src.tar.gz $BASE_DIR/sbin
|
|
mv ~/workspace/shuili-vue/dist.tar.gz $BASE_DIR/sbin
|