Added jvmArgs to jpackage
@@ -196,34 +196,6 @@ tasks.withType(JavaCompile) {
application {
mainClassName = "io.github.mzmine.main.MZmineCore"
applicationName = "MZmine"
- executableDir = ""
- applicationDefaultJvmArgs = ["-showversion",
- "-XX:MaxHeapFreeRatio=100",
- "-XX:InitialRAMPercentage=30",
- "-XX:MinRAMPercentage=80",
- "-XX:MaxRAMPercentage=80",
- "-Djava.library.path=lib",
- "-enableassertions",
- "-Dapple.awt.application.name=MZmine ${version}"
- ]
-}
-
-
-/*
- * Provide a default start script for this platform
- */
-startScripts {
- applicationName = "startMZmine-" + osSuffix
- classpath = files("lib/*")
- doLast {
- if (OperatingSystem.current().isWindows()) {
- delete unixScript
- // Temporary fix for https://github.com/gradle/gradle/issues/10387
- windowsScript.text = windowsScript.text.replace('set JAVA_HOME=\"%~dp0.."', 'set JAVA_HOME="%~dp0"')
- } else {
- delete windowsScript
- }
- }
}
/*
@@ -266,6 +238,13 @@ runtime {
installerName = "MZmine"
imageName = "MZmine"
+ jvmArgs = ["-showversion",
+ "-XX:MaxHeapFreeRatio=100",
+ "-XX:InitialRAMPercentage=30",
+ "-XX:MinRAMPercentage=80",
+ "-XX:MaxRAMPercentage=80",
+ "-enableassertions",
+ ]
}
}
@@ -286,3 +265,4 @@ processResources {
expand(project.properties)
}
}
+
