Skip to content

Commit

Permalink
docs: 更新releases.json,利用该文件实现最新版本的定位
Browse files Browse the repository at this point in the history
  • Loading branch information
yagol2020 committed Nov 23, 2021
1 parent 2245e7c commit 3356a4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 11 additions & 6 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
1 change: 1 addition & 0 deletions src/main/java/util/MyUpdateUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3356a4e

Please sign in to comment.