adding javafx run options for Windows exported apps

This commit is contained in:
Ben Fry
2021-06-19 13:53:35 -04:00
parent 8e590b6232
commit b85a81d47d
2 changed files with 15 additions and 0 deletions

View File

@@ -934,6 +934,16 @@ public class JavaBuild {
jre.addChild("opt").setContent(opt);
}
final String[] fxOptions = new String[]{
"--module-path=" + getModulePath(),
"--add-modules=javafx.base,javafx.graphics,javafx.swing",
"--add-exports=javafx.graphics/com.sun.javafx.geom=ALL-UNNAMED",
"--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED"
};
for (String opt : fxOptions) {
jre.addChild("opt").setContent(opt);
}
config.save(configFile);
project.save(buildFile);
if (!buildWindowsLauncher(buildFile, "windows")) {