v1.4.2: fixed incorrect use of _JAVA_OPTIONS leading to desktop crashes
This commit is contained in:
@@ -74,7 +74,8 @@ runtime {
|
||||
javaHome = file("./build/jdks/win/jdk-16.0.1+9").getAbsolutePath()
|
||||
jpackage {
|
||||
jpackageHome = file("./build/jdks/win/jdk-16.0.1+9")
|
||||
imageOptions = ["--icon", file("./src/main/assets/icons/windows.ico")]
|
||||
imageOptions = ["--icon", file("./src/main/assets/icons/windows.ico"),
|
||||
"--java-options", "-XX:+IgnoreUnrecognizedVMOptions"]
|
||||
|
||||
installerType = "msi"
|
||||
installerName = appName
|
||||
@@ -87,7 +88,8 @@ runtime {
|
||||
javaHome = file("./build/jdks/linux/jdk-16.0.1+9").getAbsolutePath()
|
||||
jpackage {
|
||||
jpackageHome = file("./build/jdks/linux/jdk-16.0.1+9")
|
||||
imageOptions = ["--icon", file("./src/main/assets/icons/icon_256.png")]
|
||||
imageOptions = ["--icon", file("./src/main/assets/icons/icon_256.png"),
|
||||
"--java-options", "-XX:+IgnoreUnrecognizedVMOptions"]
|
||||
//assumes ubuntu linux, changes needed to generate .rpm files
|
||||
installerType = "deb"
|
||||
installerName = appName
|
||||
@@ -102,6 +104,7 @@ runtime {
|
||||
jpackageHome = file("./build/jdks/mac/jdk-16.0.1+9/Contents/Home/")
|
||||
imageOptions = ["--icon", file("./src/main/assets/icons/mac.icns"),
|
||||
"--java-options", "-XstartOnFirstThread",
|
||||
"--java-options", "-XX:+IgnoreUnrecognizedVMOptions",
|
||||
//append .apple because com.shatteredpixel.shatteredpixeldungeon was taken =(
|
||||
"--mac-package-identifier", appPackageName + ".apple",
|
||||
"--mac-package-name", "ShattererdPD"]
|
||||
|
||||
Reference in New Issue
Block a user