From 3938022002b6b368226ecb405c534e6d851f0ab8 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 5 May 2018 15:47:18 -0400 Subject: [PATCH] Updated build.gradle to fix invalid JVM args for windows --- desktop/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktop/build.gradle b/desktop/build.gradle index 49f2efea0a..268eb20c03 100644 --- a/desktop/build.gradle +++ b/desktop/build.gradle @@ -84,7 +84,7 @@ task packrCmd() { exec { - commandLine "java", "-jar", PACKR_DIR + "packr.jar", + commandLine("java", "-jar", PACKR_DIR + "packr.jar", "--verbose", "--bundle", getPackage(), "--platform", getPlatform(), @@ -93,7 +93,8 @@ task packrCmd() { "--mainclass", project.ext.mainClassName, "--jdk", PACKR_DIR + "jdk-" + getPlatform() + ".zip", "--icon", ICON_DIR.getAbsolutePath(), - "--classpath", "--", PACKR_DIR + "config.json" + "--vmargs", (getPlatform().equals("mac") ? "XstartOnFirstThread" : "Xms256m"), + "--classpath", "--", PACKR_DIR + "config.json") } } }