Skip to content

Commit

Permalink
actually make it work
Browse files Browse the repository at this point in the history
  • Loading branch information
J3fftw1 authored and WalshyDev committed Nov 22, 2023
1 parent f100c5e commit 3e2935a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ public UpdateInfo parse(String result) throws MalformedURLException, URISyntaxEx
return null;
}

int latestVersion = json.get("build_id").getAsInt();
URL downloadURL = new URI(json.get("file_download_url").getAsString()).toURL();
JsonObject data = json.getAsJsonObject("data");
int latestVersion = data.get("build_id").getAsInt();
URL downloadURL = new URI(data.get("file_download_url").getAsString()).toURL();

return new UpdateInfo(downloadURL, new PrefixedVersion(releaseChannel, latestVersion));
}
Expand Down

0 comments on commit 3e2935a

Please sign in to comment.