diff --git a/releases.json b/releases.json index ed0f4b4..226aaa3 100644 --- a/releases.json +++ b/releases.json @@ -5,16 +5,21 @@ "yagol", "vencerk" ], - "exe_releases": [ + "newest_releases": { + "version": 1.1, + "exe_download_path": "https://github.com/yagol2020/PaperWebCrawler/releases/download/exe_1.1/PWC.exe", + "jar_download_path": "" + }, + "releases_version": [ { "version": 1.1, - "download_path": "https://github.com/yagol2020/PaperWebCrawler/releases/download/exe_1.1/PWC.exe" - } - ], - "jar_releases": [ + "exe_download_path": "https://github.com/yagol2020/PaperWebCrawler/releases/download/exe_1.1/PWC.exe", + "jar_download_path": "" + }, { "version": 1.0, - "download_path": "https://github.com/yagol2020/PaperWebCrawler/releases/download/1.0/PaperWebCrawler-jar-with-dependencies.jar" + "exe_download_path": "", + "jar_download_path": "https://github.com/yagol2020/PaperWebCrawler/releases/download/1.0/PaperWebCrawler-jar-with-dependencies.jar" } ] } diff --git a/src/main/java/util/MyUpdateUtil.java b/src/main/java/util/MyUpdateUtil.java index b97928b..8b64f0f 100644 --- a/src/main/java/util/MyUpdateUtil.java +++ b/src/main/java/util/MyUpdateUtil.java @@ -20,6 +20,7 @@ * @Description 检查PWC是否存在更新 **/ public class MyUpdateUtil { + static final String GITHUB_RELEASES_JSON_FILE_URL = ""; static final String PER_GITHUB_RELEASES_URL = "https://github.com/yagol2020/PaperWebCrawler/releases/"; public void checkUpdate(JProgressBar jProgressBar, JTextArea logTextArea) throws IOException {