更新了自动检查更新提示信息

This commit is contained in:
zhangyuheng 2024-04-28 17:47:42 +08:00
parent 035bb28f85
commit fd4e5d0396
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId> <groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId> <artifactId>Dominion</artifactId>
<version>1.21.9-beta</version> <version>1.21.10-beta</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Dominion</name> <name>Dominion</name>

View File

@ -87,7 +87,11 @@ public class GiteaReleaseCheck {
XLogger.debug("HTML URL: " + latest_release.html_url); XLogger.debug("HTML URL: " + latest_release.html_url);
if (isNewVersion(current_version, latest_release.tag_name)) { if (isNewVersion(current_version, latest_release.tag_name)) {
XLogger.info("发现新版本:" + 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); XLogger.info("下载页面:" + latest_release.html_url);
} else { } else {
XLogger.info("当前已是最新版本:" + current_version); XLogger.info("当前已是最新版本:" + current_version);