Skip to content

Commit

Permalink
build: add missing modules for runtime JRE
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Nov 12, 2024
1 parent c4c3d42 commit 60dcdc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion jadx-gui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 60dcdc7

Please sign in to comment.