1
mirror of https://github.com/CarmJos/GithubReleases4J.git synced 2026-06-05 05:28:16 +08:00

[v1.3.0] [A] 添加中文Demo示例。

This commit is contained in:
2022-01-23 11:15:10 +08:00
parent 2cad1116b9
commit a6ab32a762
3 changed files with 79 additions and 8 deletions
+8 -7
View File
@@ -53,14 +53,15 @@ public class GithubDemo {
if (behindVersions == null) {
System.out.println("Check failed! Please check updates manually.");
System.out.println("Download at " + GithubReleases4J.getReleasesURL(owner, repository));
} else if (behindVersions == 0) {
System.out.println("Check successfully, Now is up-to-date.");
} else if (behindVersions > 0) {
System.out.println("Outdated! Now behind " + behindVersions + " versions.");
System.out.println("Download latest version at " + GithubReleases4J.getLatestReleaseURL(owner, repository));
} else {
if (behindVersions > 0) {
System.out.println("Outdated! Now behind " + behindVersions + " versions.");
System.out.println("Download latest version at " + GithubReleases4J.getLatestReleaseURL(owner, repository));
} else {
System.out.println("Now is using the latest version.");
}
System.out.println("Check failed! Current version doesn't exists.");
System.out.println("Please use original version to avoid security issues.");
System.out.println("Download latest version at " + GithubReleases4J.getLatestReleaseURL(owner, repository));
}
}