Updated build.gradle to fix invalid JVM args for windows
This commit is contained in:
@@ -84,7 +84,7 @@ task packrCmd() {
|
|||||||
|
|
||||||
exec {
|
exec {
|
||||||
|
|
||||||
commandLine "java", "-jar", PACKR_DIR + "packr.jar",
|
commandLine("java", "-jar", PACKR_DIR + "packr.jar",
|
||||||
"--verbose",
|
"--verbose",
|
||||||
"--bundle", getPackage(),
|
"--bundle", getPackage(),
|
||||||
"--platform", getPlatform(),
|
"--platform", getPlatform(),
|
||||||
@@ -93,7 +93,8 @@ task packrCmd() {
|
|||||||
"--mainclass", project.ext.mainClassName,
|
"--mainclass", project.ext.mainClassName,
|
||||||
"--jdk", PACKR_DIR + "jdk-" + getPlatform() + ".zip",
|
"--jdk", PACKR_DIR + "jdk-" + getPlatform() + ".zip",
|
||||||
"--icon", ICON_DIR.getAbsolutePath(),
|
"--icon", ICON_DIR.getAbsolutePath(),
|
||||||
"--classpath", "--", PACKR_DIR + "config.json"
|
"--vmargs", (getPlatform().equals("mac") ? "XstartOnFirstThread" : "Xms256m"),
|
||||||
|
"--classpath", "--", PACKR_DIR + "config.json")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user