Skip to content

Commit

Permalink
feat: 从GitHub的releases获得最新的exe,并自我更新
Browse files Browse the repository at this point in the history
  • Loading branch information
yagol2020 committed Nov 22, 2021
1 parent a896ad3 commit 179886c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/java/update/UpdateTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpUtil;
import config.MyConfig;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
Expand All @@ -22,7 +21,11 @@
* @Description
**/
public class UpdateTest {
@Test
public static void main(String[] args) throws IOException {
UpdateTest updateTest = new UpdateTest();
updateTest.testGitHubReleases();
}

public void testGitHubReleases() throws IOException {
MyConfig config = MyConfig.initConfig(JarUtil.PWC_JAR_PATH);
String PER_GITHUB_RELEASES_URL = "https://github.com/yagol2020/PaperWebCrawler/releases/";
Expand Down

0 comments on commit 179886c

Please sign in to comment.