mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 04:44:58 +00:00
Checking updates uses HTTPS
HTTPS project page
This commit is contained in:
@@ -49,11 +49,17 @@ public class ApplicationInfo {
|
||||
|
||||
public static String shortApplicationVerName;
|
||||
|
||||
public static final String PROJECT_PAGE = "http://www.free-decompiler.com/flash";
|
||||
public static final String PROJECT_PAGE = "https://www.free-decompiler.com/flash";
|
||||
|
||||
public static String updatePageStub = "http://www.free-decompiler.com/flash/update.html?currentVersion=";
|
||||
|
||||
public static String updatePage;
|
||||
/**
|
||||
* URL for checking new updates
|
||||
*/
|
||||
public static String updateCheckUrl = "https://www.free-decompiler.com/flash/update.html?currentVersion=<version>¤tRevision=<revision>¤tVersionMajor=<version.major>¤tVersionMinor=<version.minor>¤tVersionRelease=<version.release>¤tVersionBuild=<version.build>¤tNightly=<nightly>";
|
||||
|
||||
/**
|
||||
* URL for doing update
|
||||
*/
|
||||
public static String updateUrl = "https://www.free-decompiler.com/flash/update.html?action=check¤tVersion=<version>¤tRevision=<revision>¤tVersionMajor=<version.major>¤tVersionMinor=<version.minor>¤tVersionRelease=<version.release>¤tVersionBuild=<version.build>¤tNightly=<nightly>";
|
||||
|
||||
static {
|
||||
loadProperties();
|
||||
@@ -77,9 +83,25 @@ public class ApplicationInfo {
|
||||
// ignore
|
||||
version = "unknown";
|
||||
}
|
||||
|
||||
applicationVerName = APPLICATION_NAME + " v." + version;
|
||||
updatePage = updatePageStub + version;
|
||||
updateCheckUrl = updateCheckUrl
|
||||
.replace("<revision>", revision)
|
||||
.replace("<version>", version)
|
||||
.replace("<version.major>", ""+version_major)
|
||||
.replace("<version.minor>", ""+version_minor)
|
||||
.replace("<version.release>", ""+version_release)
|
||||
.replace("<version.build>", ""+version_build)
|
||||
.replace("<nightly>", nightly?"1":"0")
|
||||
;
|
||||
updateUrl = updateUrl
|
||||
.replace("<revision>", revision)
|
||||
.replace("<version>", version)
|
||||
.replace("<version.major>", ""+version_major)
|
||||
.replace("<version.minor>", ""+version_minor)
|
||||
.replace("<version.release>", ""+version_release)
|
||||
.replace("<version.build>", ""+version_build)
|
||||
.replace("<nightly>", nightly?"1":"0")
|
||||
;
|
||||
applicationVerName = APPLICATION_NAME + " v." + version;
|
||||
shortApplicationVerName = SHORT_APPLICATION_NAME + " v." + version;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user