ref: 打包脚本调整支持切换分支
This commit is contained in:
6
pkg.sh
6
pkg.sh
@@ -2,9 +2,11 @@
|
||||
|
||||
# front-end Catalog
|
||||
WebDir=/root/omc.git/fe.ems.vue3
|
||||
WebBranch=lichang
|
||||
BuildWeb=""
|
||||
# back-end catalog
|
||||
ApiDir=/root/omc.git/be.ems
|
||||
ApiBranch=lichang
|
||||
BuildApi=""
|
||||
# Package Catalog
|
||||
BuildDir=/root/omc.git/build.ems
|
||||
@@ -40,7 +42,7 @@ if [ -n "$BuildWeb" ]; then
|
||||
cd $WebDir
|
||||
git checkout .
|
||||
git pull
|
||||
git checkout lichang
|
||||
git checkout $WebBranch
|
||||
git pull
|
||||
|
||||
npm install --registry https://registry.npmmirror.com
|
||||
@@ -60,7 +62,7 @@ if [ -n "$BuildApi" ]; then
|
||||
cd $ApiDir
|
||||
git checkout .
|
||||
git pull
|
||||
git checkout lichang
|
||||
git checkout $ApiBranch
|
||||
git pull
|
||||
|
||||
MOD_CONFIG="be.ems/src/framework/config"
|
||||
|
||||
Reference in New Issue
Block a user