replaceVersion

This commit is contained in:
bwcx_jzy 2021-12-15 13:12:56 +08:00
parent 3b3466bee9
commit 0495483ea9
3 changed files with 13 additions and 3 deletions

1
.gitignore vendored
View File

@ -27,6 +27,7 @@ yarn-error.log
yarn.lock
package-lock.json
*bak
pom.xml.versionsBackup
.vscode
# visual studio code

View File

@ -190,4 +190,9 @@ public class MonitorNotifyLog extends BaseWorkspaceModel {
public void setStatus(boolean status) {
this.status = status;
}
@Override
public void setModifyUser(String modifyUser) {
}
}

View File

@ -28,11 +28,15 @@ fi
cd ../ && mvn versions:set -DnewVersion=$1
# 替换 jpom.io 主页版本号
sed -i "s/${old_version}/${new_version}/g" $pwd/../docs/js/version.js
sed -i.bak "s/${old_version}/${new_version}/g" $pwd/../docs/js/version.js
# 替换远程更新包的版本号
sed -i "s/${old_version}/${new_version}/g" $pwd/../docs/version.json
sed -i.bak "s/${old_version}/${new_version}/g" $pwd/../docs/versions.json
# 替换 docker 中的版本
sed -i "s/${old_version}/${new_version}/g" $pwd/../.env
sed -i.bak "s/${old_version}/${new_version}/g" $pwd/../.env
# 替换 Dockerfile 中的版本
sed -i.bak "s/${old_version}/${new_version}/g" $pwd/../modules/server/Dockerfile
sed -i.bak "s/${old_version}/${new_version}/g" $pwd/../modules/agent/Dockerfile
# 保留新版本号
echo "$new_version" > $pwd/../docs/version.txt