Skip to content

Commit

Permalink
Auto-updater is now woring
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Jul 13, 2024
1 parent 59270c1 commit 3e21bb3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,16 +260,21 @@ public static void readCurrentVersion(String url) throws IOException {
List<Map<String, Object>> assets = (List<Map<String, Object>>) database.get("assets");
downloadJarURL=null;
for (Map<String, Object> key : assets) {
if (((String) key.get("name")).contentEquals(jarName)) {
String string = (String) key.get("name");

System.out.println("Checking "+string);
if (string.contentEquals(jarName)) {
downloadJarURL = (String) key.get("browser_download_url");
sizeOfJar = ((Double) key.get("size")).longValue();
System.out.println(downloadJarURL + " Size " + sizeOfJar + " bytes");
}
if (((String) key.get("name")).contentEquals("jvm.json")) {
}else
System.out.println(string+" is not "+jarName);
if (string.contentEquals("jvm.json")) {
downloadJsonURL = (String) key.get("browser_download_url");
sizeOfJson = ((Double) key.get("size")).longValue();
System.out.println(downloadJsonURL + " Size " + sizeOfJson + " bytes");
}
}else
System.out.println(string+" is not jvm.json");

}
if(downloadJarURL==null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class JvmManager {
public static String getCommandString(String project, String repo, String version, String downloadJsonURL,
long sizeOfJson, ProgressBar progress, String bindir) throws Exception {
if(version==null)
version="0.0.4";
version="0.0.6";
File exe;

exe= download(version, downloadJsonURL, sizeOfJson, progress, bindir, "jvm.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static void main(String [] args) {
CadoodleUpdater.argsFromSystem=args;
CadoodleUpdater.project="CommonWealthRobotics";
CadoodleUpdater.repoName= "CaDoodle-Application";
CadoodleUpdater.jarName= "CaDoodle-Application.jar ";
CadoodleUpdater.jarName= "CaDoodle-Application.jar";

launch(args);
}
Expand Down

0 comments on commit 3e21bb3

Please sign in to comment.