feat: 更新前端版本号
This commit is contained in:
@@ -55,6 +55,9 @@ if [ -n "$BuildWeb" ]; then
|
|||||||
git checkout $WebBranch
|
git checkout $WebBranch
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
sed -i "s/VITE_APP_VERSION = .*/VITE_APP_VERSION = \"${VERSION}\"/g" $WebDir/.env.development
|
||||||
|
sed -i "s/VITE_APP_VERSION = .*/VITE_APP_VERSION = \"${VERSION}\"/g" $WebDir/.env.production
|
||||||
|
|
||||||
# RemoveChinese
|
# RemoveChinese
|
||||||
rm -rf ./public/alarmHelp/zh
|
rm -rf ./public/alarmHelp/zh
|
||||||
rm -rf ./public/nbStateImput/zh.xlsx
|
rm -rf ./public/nbStateImput/zh.xlsx
|
||||||
|
|||||||
3
pkg.sh
3
pkg.sh
@@ -56,6 +56,9 @@ if [ -n "$BuildWeb" ]; then
|
|||||||
git checkout $WebBranch
|
git checkout $WebBranch
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
sed -i "s/VITE_APP_VERSION = .*/VITE_APP_VERSION = \"${VERSION}\"/g" $WebDir/.env.development
|
||||||
|
sed -i "s/VITE_APP_VERSION = .*/VITE_APP_VERSION = \"${VERSION}\"/g" $WebDir/.env.production
|
||||||
|
|
||||||
# remote replication
|
# remote replication
|
||||||
#scpDir=/root/omc.git/fe.ems.vue3
|
#scpDir=/root/omc.git/fe.ems.vue3
|
||||||
#scp -r -P 18422 root@192.168.9.58:$scpDir/dist $WebDir/
|
#scp -r -P 18422 root@192.168.9.58:$scpDir/dist $WebDir/
|
||||||
|
|||||||
Reference in New Issue
Block a user