build: add missing modules for runtime JRE

This commit is contained in:
Skylot
2024-11-12 18:48:13 +00:00
parent c4c3d42d16
commit 60dcdc7096
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ jobs:
- name: Set up JDK
uses: oracle-actions/setup-java@v1
with:
release: 21
release: 23
- name: Print Java version
shell: bash
+5 -1
View File
@@ -136,11 +136,15 @@ launch4j {
}
runtime {
addOptions("--strip-debug", "--compress", "2", "--no-header-files", "--no-man-pages")
addOptions("--strip-debug", "--compress", "zip-9", "--no-header-files", "--no-man-pages")
addModules(
"java.desktop",
"java.naming",
"java.xml",
// needed for "https" protocol to get plugins and updates
"jdk.crypto.cryptoki",
// add Unsafe class, used by GSON
"jdk.unsupported",
)
jpackage {
imageOptions = listOf("--icon", "$projectDir/src/main/resources/logos/jadx-logo.ico")