From 2c2165cb2293fc46b608cf05c121dd08ae9f1d29 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Wed, 29 Apr 2026 11:58:07 +0200 Subject: [PATCH] Fix wixhelper.dll not found file is named now msica.dll --- .github/workflows/win-exe.yml | 12 +++++------- dist/win/build.ps1 | 2 +- dist/win/resources/main.wxs | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/win-exe.yml b/.github/workflows/win-exe.yml index b8fd9ee02..f8cc0b1d0 100644 --- a/.github/workflows/win-exe.yml +++ b/.github/workflows/win-exe.yml @@ -220,12 +220,10 @@ jobs: } $jar.Dispose() } - - name: Extract wixhelper.dll for Codesigning #see https://github.com/cryptomator/cryptomator/issues/3130 - shell: pwsh + - name: Get msi helper dll for code signing 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" + ${JAVA_HOME}/bin/jpackage --type msi --win-upgrade-uuid bda45523-42b1-4cae-9354-a45475ed4775 --app-image appdir/Cryptomator --dest /tmp/ --name Test --vendor Test --copyright "None" --app-version "1.0" --temp msi-helper + find ./msi-helper/ -type f -name msica.dll -exec mv {} ./appdir \; - name: Sign DLLs with Azure Trusted Signing if: inputs.sign || github.event_name == 'schedule' uses: ./.github/actions/win-sign-action @@ -282,8 +280,8 @@ jobs: --license-file dist/win/resources/license.rtf --file-associations dist/win/resources/FAvaultFile.properties env: - JP_WIXWIZARD_RESOURCES: ${{ github.workspace }}/dist/win/resources # requires abs path, used in resources/main.wxs - JP_WIXHELPER_DIR: ${{ github.workspace }}\appdir + JP_WIXWIZARD_RESOURCES: ${{ github.workspace }}/dist/win/resources/ # requires abs path, used in resources/main.wxs + JP_WIXHELPER_DIR: ${{ github.workspace }}\appdir\ - name: Sign MSI with Azure Trusted Signing if: inputs.sign || github.event_name == 'schedule' uses: ./.github/actions/win-sign-action diff --git a/dist/win/build.ps1 b/dist/win/build.ps1 index b192129d5..1ac4bae5d 100644 --- a/dist/win/build.ps1 +++ b/dist/win/build.ps1 @@ -231,7 +231,7 @@ $Env:JP_WIXWIZARD_RESOURCES = "$buildDir\resources\" $Env:JP_WIXWIZARD_RESOURCES_PROPERTIES_FORMAT = "${Env:JP_WIXWIZARD_RESOURCES}".Replace('\', '\\'); $Env:JP_WIXHELPER_DIR = "" -Get-Content .\resources\FAvaultFile.template.properties ` +Get-Content .\resources\FAvaultFile.template.properties ` # Similar to envsubst | ForEach-Object { $ExecutionContext.InvokeCommand.ExpandString($_) } ` | Out-File -FilePath .\resources\FAvaultFile.properties diff --git a/dist/win/resources/main.wxs b/dist/win/resources/main.wxs index 86afe3079..9cdb8d976 100644 --- a/dist/win/resources/main.wxs +++ b/dist/win/resources/main.wxs @@ -68,7 +68,7 @@ - +