Use the javaimage to extract wixhelper

This commit is contained in:
Armin Schrenk
2026-02-18 15:10:22 +01:00
parent f21fae5b47
commit a1f58ffb0e

View File

@@ -185,9 +185,18 @@ jobs:
- name: Extract wixhelper.dll for Codesigning #see https://github.com/cryptomator/cryptomator/issues/3130
shell: pwsh
run: |
New-Item -Path appdir/jpackage-jmod -ItemType Directory
& $env:JAVA_HOME\bin\jmod.exe extract --dir jpackage-jmod "${env:JAVA_HOME}\jmods\jdk.jpackage.jmod"
Get-ChildItem -Recurse -Path "jpackage-jmod" -File wixhelper.dll | Select-Object -Last 1 | Copy-Item -Destination "appdir"
$extractDir = "appdir/jpackage-jimage"
New-Item -Path $extractDir -ItemType Directory -Force | Out-Null
& "$env:JAVA_HOME\bin\jimage.exe" extract --dir $extractDir "$env:JAVA_HOME\lib\modules"
$wixhelper = Get-ChildItem -Path $extractDir -Recurse -File -Filter "wixhelper.dll" | Select-Object -First 1
if (-not $wixhelper) {
throw "wixhelper.dll not found in $env:JAVA_HOME\lib\modules"
}
Copy-Item -Path $wixhelper.FullName -Destination "appdir/wixhelper.dll" -Force
Remove-Item -Path $extractDir -Recurse -Force
- name: Sign DLLs with Azure Trusted Signing
if: inputs.sign || github.event_name == 'release'
uses: ./.github/actions/win-sign-action