diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-06-15 18:49:36 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-06-15 18:49:36 -0600 |
commit | d11e749ea0351948a50e4b11673165dee719e387 (patch) | |
tree | 7978a039377acd6d3cea162833515466396cc3ac /src/net/brysonsteck/Resurrection/startup | |
parent | fed65b2a8cf4fdf78a005be415aef87b99a31f67 (diff) | |
download | resurrection-d11e749ea0351948a50e4b11673165dee719e387.tar resurrection-d11e749ea0351948a50e4b11673165dee719e387.tar.gz resurrection-d11e749ea0351948a50e4b11673165dee719e387.tar.bz2 |
shortened death time to test resurrection
Diffstat (limited to 'src/net/brysonsteck/Resurrection/startup')
-rw-r--r-- | src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java index be30844..56893d8 100644 --- a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java +++ b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java @@ -20,9 +20,11 @@ public class CheckForUpdate { String json = urlReader(); JsonElement root = new JsonParser().parse(json); JsonObject rootobj = root.getAsJsonObject(); - JsonElement softwareElement = rootobj.get("resurrection"); + JsonElement softwareElement = rootobj.getAsJsonObject("resurrection"); JsonObject softwareObj = softwareElement.getAsJsonObject(); version = softwareObj.get("current-release").toString(); + version = version.replace("\"", ""); + versionURL = softwareObj.get("github-release").toString(); // version = rootobj.get("current-version").getAsString(); // versionURL = rootobj.get("release-url").getAsString(); } catch (IOException e) { |