Updated build.gradle to fix invalid JVM args for windows

This commit is contained in:
Anuken
2018-05-05 15:47:18 -04:00
parent 450fc456be
commit 3938022002

View File

@@ -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")
}
}
}