From 59f6852d9a6e529938df8e0bf540b4f4c0a877a9 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Fri, 14 Jun 2024 21:50:59 +0200 Subject: [PATCH] Codesign windows dll --- .github/workflows/build-project.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-project.yaml b/.github/workflows/build-project.yaml index 2c14632..67b7b4f 100644 --- a/.github/workflows/build-project.yaml +++ b/.github/workflows/build-project.yaml @@ -269,6 +269,18 @@ jobs: target: x64 config: ${{ needs.check-event.outputs.config }} + - name: Create Code Signing Certificate + if: success() && github.event_name != 'pull_request' + run: | + New-Item -ItemType directory -Path certificate + Set-Content -Path certificate\certificate.txt -Value '${{ secrets.WINDOWS_CSC_LINK }}' + certutil -decode certificate\certificate.txt certificate\certificate.pfx + + - name: Code Sign 64 + if: success() && github.event_name != 'pull_request' + run: | + & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.20348.0/x64/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.WINDOWS_CSC_PASS }}' /t http://timestamp.comodoca.com/authenticode .\release\${{ needs.check-event.outputs.config }}\obs-plugins\64bit\${{ steps.setup.outputs.pluginName }}.dll + - name: Package Plugin 📀 uses: ./.github/actions/package-plugin with: