build: add missing modules for runtime JRE
Some checks are pending
Build Artifacts / build (push) Waiting to run
Build Artifacts / build-win-bundle (push) Waiting to run
Build Test / tests (ubuntu-latest) (push) Waiting to run
Build Test / tests (windows-latest) (push) Waiting to run
CodeQL / Analyze (java) (push) Waiting to run

This commit is contained in:
Skylot 2024-11-12 18:48:13 +00:00
parent c4c3d42d16
commit 60dcdc7096
No known key found for this signature in database
GPG Key ID: 47A4975761262B6A
2 changed files with 6 additions and 2 deletions

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

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")