diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/exe/Launch4JTask.java b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/exe/Launch4JTask.java index 08d743fb..fbbb3c43 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/exe/Launch4JTask.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/tasks/exe/Launch4JTask.java @@ -28,7 +28,7 @@ public void clear() { } // URL constants - private static final String DOWNLOAD_URL = "http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"; // Oracle + public static final String DOWNLOAD_URL = "http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"; // Oracle // JRE 8 // File constants private final Path faviconFile; @@ -80,8 +80,8 @@ private Path setConfig() { // Set file options config.setChdir("."); config.setErrTitle("JVM Error"); - config.setDownloadUrl(DOWNLOAD_URL); - + config.setDownloadUrl(server.config.launch4j.downloadUrl); + if (server.config.launch4j.supportURL != null) config.setSupportUrl(server.config.launch4j.supportURL); // Set boolean options config.setPriorityIndex(0); config.setHeaderType(Config.GUI_HEADER); @@ -90,7 +90,7 @@ private Path setConfig() { // Prepare JRE Jre jre = new Jre(); - jre.setMinVersion("1.8.0"); + jre.setMinVersion(server.config.launch4j.minVersion); if (server.config.launch4j.setMaxVersion) jre.setMaxVersion(server.config.launch4j.maxVersion); jre.setRuntimeBits(Jre.RUNTIME_BITS_64_AND_32); diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java b/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java index e2f20159..a8d77215 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/config/LaunchServerConfig.java @@ -16,6 +16,7 @@ import pro.gravit.launchserver.auth.protect.StdProtectHandler; import pro.gravit.launchserver.auth.provider.RejectAuthProvider; import pro.gravit.launchserver.auth.texture.RequestTextureProvider; +import pro.gravit.launchserver.binary.tasks.exe.Launch4JTask; import pro.gravit.launchserver.components.AuthLimiterComponent; import pro.gravit.launchserver.components.Component; import pro.gravit.launchserver.components.RegLimiterComponent; @@ -209,6 +210,9 @@ public static class ExeConf { public boolean enabled; public boolean setMaxVersion; public String maxVersion; + public String minVersion = "1.8.0"; + public String supportURL = null; + public String downloadUrl = Launch4JTask.DOWNLOAD_URL; public String productName; public String productVer; public String fileDesc;