Browse Source

Configure jpackage to launch JVM with cwd set to Contents/Resources

master
Edwin Jakobs 2 years ago
parent
commit
4631eced38
  1. 5
      build.gradle.kts

5
build.gradle.kts

@ -192,7 +192,10 @@ runtime {
jpackage { jpackage {
imageName = "openrndr-application" imageName = "openrndr-application"
skipInstaller = true skipInstaller = true
if (OperatingSystem.current() == OperatingSystem.MAC_OS) jvmArgs.add("-XstartOnFirstThread") if (OperatingSystem.current() == OperatingSystem.MAC_OS) {
jvmArgs.add("-XstartOnFirstThread")
jvmArgs.add("-Duser.dir=${"$"}APPDIR/../Resources")
}
} }
options.set(listOf("--strip-debug", "--compress", "1", "--no-header-files", "--no-man-pages")) options.set(listOf("--strip-debug", "--compress", "1", "--no-header-files", "--no-man-pages"))
modules.set(listOf("jdk.unsupported", "java.management")) modules.set(listOf("jdk.unsupported", "java.management"))

Loading…
Cancel
Save