From d1914c7b1a4f7ba9472f9122dd29549cc0db31d0 Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Wed, 9 Jan 2019 17:15:09 +0400 Subject: [PATCH] Config bugs fixes. --- .../src/main/java/ru/gravit/launchserver/LaunchServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java index 4416df6c..f2421da7 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java @@ -564,9 +564,8 @@ private void generateConfigIfNotExists() throws IOException { newConfig.launch4j.txtProductVersion = "%s, build %d"; newConfig.launch4j.productName = "GravitLauncher"; newConfig.launch4j.productVer = newConfig.launch4j.fileVer; - newConfig.buildPostTransform = new PostBuildTransformConf(); newConfig.env = LauncherConfig.LauncherEnvironment.STD; - newConfig.startScript = "." + File.separator + "start.sh"; + newConfig.startScript = JVMHelper.OS_TYPE.equals(JVMHelper.OS.MUSTDIE) ? "." + File.separator + "start.bat" : "." + File.separator + "start.sh"; newConfig.authHandler = new MemoryAuthHandler(); newConfig.hwidHandler = new AcceptHWIDHandler();