Skip to content

Commit

Permalink
[build] configure javafx modules for Apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jul 28, 2021
1 parent bd91d64 commit 36556b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,12 @@ configure(project(':app:fx')) {
// start scripts created by the application plugin are overwritten by the
// org.beryx.runtime plugin, thus custom settings must be configured here as
// opposed to in the usual `startScripts` closure
if (project.hasProperty(javafxSdkProperty))
jvmArgs += "--module-path=${project.getProperty(javafxSdkProperty)}/lib"
if (project.hasProperty(javafxSdkProperty)) {
jvmArgs = [
'--add-modules=javafx.controls',
"--module-path=${project.getProperty(javafxSdkProperty)}/lib"
]
}
}

jpackage {
Expand Down

0 comments on commit 36556b6

Please sign in to comment.