1
0

feat: 更新前端版本号

This commit is contained in:
TsMask
2025-08-15 18:44:03 +08:00
parent 9036324202
commit 2f6ad6cac0
2 changed files with 6 additions and 0 deletions

View File

@@ -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
View File

@@ -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/