From 5beeeae27fc7fec335912189a769cedf75e508cf Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 16 Jan 2023 18:47:41 +0100 Subject: [PATCH] Sign integrations.dll during build --- .github/workflows/win-exe.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/win-exe.yml b/.github/workflows/win-exe.yml index f36dd6d0d..ae95e4278 100644 --- a/.github/workflows/win-exe.yml +++ b/.github/workflows/win-exe.yml @@ -116,6 +116,9 @@ jobs: - name: Fix permissions run: attrib -r appdir/Cryptomator/Cryptomator.exe shell: pwsh + - name: Extract integrations DLL for code signing + shell: pwsh + run: gci ./appdir/Cryptomator/app/mods/ -File integrations-win-*.jar | ForEach-Object {Set-Location -Path $_.Directory; jar --file=$($_.FullName) --extract integrations.dll } - name: Codesign uses: skymatic/code-sign-action@v2 with: @@ -126,6 +129,10 @@ jobs: timestampUrl: 'http://timestamp.digicert.com' folder: appdir/Cryptomator recursive: true + - name: Repack signed DLL into jar + shell: pwsh + run: | + gci ./appdir/Cryptomator/app/mods/ -File integrations-win-*.jar | ForEach-Object {Set-Location -Path $_.Directory; jar --file=$($_.FullName) --update integrations.dll; Remove-Item integrations.dll} - name: Generate license for MSI run: > mvn -B license:add-third-party