1.3.2: Really fix update mechanism (use cdn.rawgit.com correctly).
This commit is contained in:
parent
8fce0e545d
commit
62fc4897d0
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
<groupId>com.rarchives.ripme</groupId>
|
<groupId>com.rarchives.ripme</groupId>
|
||||||
<artifactId>ripme</artifactId>
|
<artifactId>ripme</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.3.1</version>
|
<version>1.3.2</version>
|
||||||
<name>ripme</name>
|
<name>ripme</name>
|
||||||
<url>http://rip.rarchives.com</url>
|
<url>http://rip.rarchives.com</url>
|
||||||
<properties>
|
<properties>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"latestVersion" : "1.3.1",
|
"latestVersion" : "1.3.2",
|
||||||
"changeList" : [
|
"changeList" : [
|
||||||
|
"1.3.2: Really fix update mechanism.",
|
||||||
"1.3.1: Fix update mechanism. Improved Imgur. Some improvements.",
|
"1.3.1: Fix update mechanism. Improved Imgur. Some improvements.",
|
||||||
"1.3.0: Fix Instagram, Tumblr, xHamster, 4chan, 8muses. Some new features.",
|
"1.3.0: Fix Instagram, Tumblr, xHamster, 4chan, 8muses. Some new features.",
|
||||||
"1.2.13: Hotfix for imgur album rips",
|
"1.2.13: Hotfix for imgur album rips",
|
||||||
|
@ -21,8 +21,8 @@ import com.rarchives.ripme.utils.Utils;
|
|||||||
public class UpdateUtils {
|
public class UpdateUtils {
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(UpdateUtils.class);
|
private static final Logger logger = Logger.getLogger(UpdateUtils.class);
|
||||||
private static final String DEFAULT_VERSION = "1.3.1";
|
private static final String DEFAULT_VERSION = "1.3.2";
|
||||||
private static final String updateJsonURL = "https://cdn.rawgit.com/4pr0n/ripme/master/ripme.json";
|
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 mainFileName = "ripme.jar";
|
||||||
private static final String updateFileName = "ripme.jar.update";
|
private static final String updateFileName = "ripme.jar.update";
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ public class UpdateUtils {
|
|||||||
String thisVersion = UpdateUtils.class.getPackage().getImplementationVersion();
|
String thisVersion = UpdateUtils.class.getPackage().getImplementationVersion();
|
||||||
if (thisVersion == null) {
|
if (thisVersion == null) {
|
||||||
// Version is null if we're not running from the JAR
|
// 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;
|
return thisVersion;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user