mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-02 03:48:05 +08:00
replaceVersion
This commit is contained in:
parent
3b3466bee9
commit
0495483ea9
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,6 +27,7 @@ yarn-error.log
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
*bak
|
||||
pom.xml.versionsBackup
|
||||
.vscode
|
||||
|
||||
# visual studio code
|
||||
|
@ -190,4 +190,9 @@ public class MonitorNotifyLog extends BaseWorkspaceModel {
|
||||
public void setStatus(boolean status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setModifyUser(String modifyUser) {
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user