diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-23 15:13:24 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-23 15:13:24 -0400 |
| commit | faf123fb068c294caa206d792b2a725ae1fd9139 (patch) | |
| tree | d98d6d8c41c71dd0f421e82d183cff0b99097f21 /src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | |
| parent | 853be8d4be7c181fea38af8527c99c7eef9b0654 (diff) | |
| download | notenoughupdates-faf123fb068c294caa206d792b2a725ae1fd9139.tar.gz notenoughupdates-faf123fb068c294caa206d792b2a725ae1fd9139.tar.bz2 notenoughupdates-faf123fb068c294caa206d792b2a725ae1fd9139.zip | |
feat: add auto updater for prereleases and allow changing the repo url
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java index 181b9225..90025881 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUManager.java @@ -66,7 +66,7 @@ public class NEUManager { private ExecutorService repoLoaderES = Executors.newSingleThreadExecutor(); - private static final String GIT_COMMITS_URL = "https://api.github.com/repos/Moulberry/NotEnoughUpdates-REPO/commits/master"; + private static String GIT_COMMITS_URL; private HashMap<String, Set<String>> usagesMap = new HashMap<>(); @@ -80,6 +80,7 @@ public class NEUManager { this.neu = neu; this.configLocation = configLocation; this.auctionManager = new APIManager(this); + GIT_COMMITS_URL = neu.config.hidden.repoCommitsURL; gson = new GsonBuilder().setPrettyPrinting().create(); @@ -188,8 +189,7 @@ public class NEUManager { Utils.recursiveDelete(repoLocation); repoLocation.mkdirs(); - //TODO: Store hard-coded value somewhere else - String dlUrl = "https://github.com/Moulberry/NotEnoughUpdates-REPO/archive/master.zip"; + String dlUrl = neu.config.hidden.repoURL; pane.setMessage("Downloading NEU Master Archive. (DL# >20)"); dialog.pack(); |
