Skip to content

Commit

Permalink
Updated build.gradle to fix invalid JVM args for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed May 5, 2018
1 parent 450fc45 commit 3938022
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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")
}
}
}
Expand Down

0 comments on commit 3938022

Please sign in to comment.