From 73524d471fc1f3984e029facfedc0147df4ce8bd Mon Sep 17 00:00:00 2001 From: crschnick Date: Sun, 26 May 2024 20:33:30 +0000 Subject: [PATCH] Dist fixes --- build.gradle | 4 +++- dist/jpackage.gradle | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index a247e5c18..f94acf1c8 100644 --- a/build.gradle +++ b/build.gradle @@ -126,9 +126,11 @@ project.ext { // Disable this for now as it requires Windows 10+ // '-XX:+UseZGC', "-Dvisualvm.display.name=XPipe", - "-Dapple.awt.application.appearance=system", "-Djavafx.preloader=io.xpipe.app.core.AppPreloader" ] + if (org.gradle.internal.os.OperatingSystem.current().isMacOsX()) { + jvmRunArgs += ["-Dapple.awt.application.appearance=system"] + } useBundledJavaFx = fullVersion useBundledJna = fullVersion announce = System.getenv('SKIP_ANNOUNCEMENT') == null || !Boolean.parseBoolean(System.getenv('SKIP_ANNOUNCEMENT')) diff --git a/dist/jpackage.gradle b/dist/jpackage.gradle index 255405378..b4dd6a47e 100644 --- a/dist/jpackage.gradle +++ b/dist/jpackage.gradle @@ -53,9 +53,14 @@ jlink { // '--strip-debug', '--no-header-files', '--no-man-pages', - // '--strip-native-commands' + '--include-locales', "${String.join(",", languages)}", + '--compress', 'zip-9' ] + if (org.gradle.internal.os.OperatingSystem.current().isLinux()) { + options += ['--strip-native-debug-symbols'] + } + if (useBundledJavaFx) { addExtraModulePath(layout.projectDirectory.dir("javafx/${platformName}/${arch}").toString()) }