Skip to content

Commit

Permalink
更新了自动检查更新提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdeZhang committed Apr 28, 2024
1 parent 035bb28 commit fd4e5d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.21.9-beta</version>
<version>1.21.10-beta</version>
<packaging>jar</packaging>

<name>Dominion</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ private void getLatestRelease() {
XLogger.debug("HTML URL: " + latest_release.html_url);
if (isNewVersion(current_version, latest_release.tag_name)) {
XLogger.info("发现新版本:" + latest_release.tag_name);
XLogger.info("版本信息:" + latest_release.message);
XLogger.info("版本信息:");
String[] message = latest_release.message.split("\n");
for (String line : message) {
XLogger.info("\t" + line);
}
XLogger.info("下载页面:" + latest_release.html_url);
} else {
XLogger.info("当前已是最新版本:" + current_version);
Expand Down

0 comments on commit fd4e5d0

Please sign in to comment.