From 62fc4897d05c6b8df8e43795da39ab747fbe6125 Mon Sep 17 00:00:00 2001 From: MetaPrime Date: Mon, 26 Dec 2016 15:54:53 -0600 Subject: [PATCH] 1.3.2: Really fix update mechanism (use cdn.rawgit.com correctly). --- pom.xml | 2 +- ripme.json | 3 ++- src/main/java/com/rarchives/ripme/ui/UpdateUtils.java | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index c5138da3..29065a8c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.rarchives.ripme ripme jar - 1.3.1 + 1.3.2 ripme http://rip.rarchives.com diff --git a/ripme.json b/ripme.json index 97b2af8a..cd84b682 100644 --- a/ripme.json +++ b/ripme.json @@ -1,6 +1,7 @@ { - "latestVersion" : "1.3.1", + "latestVersion" : "1.3.2", "changeList" : [ + "1.3.2: Really fix update mechanism.", "1.3.1: Fix update mechanism. Improved Imgur. Some improvements.", "1.3.0: Fix Instagram, Tumblr, xHamster, 4chan, 8muses. Some new features.", "1.2.13: Hotfix for imgur album rips", diff --git a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java index 3061a31f..cc78f64a 100644 --- a/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java +++ b/src/main/java/com/rarchives/ripme/ui/UpdateUtils.java @@ -21,8 +21,8 @@ import com.rarchives.ripme.utils.Utils; public class UpdateUtils { private static final Logger logger = Logger.getLogger(UpdateUtils.class); - private static final String DEFAULT_VERSION = "1.3.1"; - private static final String updateJsonURL = "https://cdn.rawgit.com/4pr0n/ripme/master/ripme.json"; + private static final String DEFAULT_VERSION = "1.3.2"; + private static final String updateJsonURL = "https://cdn.rawgit.com/4pr0n/ripme/" + DEFAULT_VERSION + "/ripme.json"; private static final String mainFileName = "ripme.jar"; private static final String updateFileName = "ripme.jar.update"; @@ -34,7 +34,7 @@ public class UpdateUtils { String thisVersion = UpdateUtils.class.getPackage().getImplementationVersion(); if (thisVersion == null) { // Version is null if we're not running from the JAR - thisVersion = DEFAULT_VERSION; ; // Super-high version number + thisVersion = DEFAULT_VERSION; // Super-high version number } return thisVersion; }