git: Remove msi signing again since Microsoft doesn't care at all (#765)

This commit is contained in:
Nik
2022-10-02 17:31:40 +02:00
committed by GitHub
parent 9c484e7b57
commit e865883611

View File

@@ -101,16 +101,16 @@ jobs:
cpack
echo "ImHex checks for the existence of this file to determine if it is running in portable mode. You should not delete this file" > $PWD/install/PORTABLE
- name: 🗝️ Sign Windows Installer
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
shell: powershell
env:
WIN_SIGN_CERT: ${{ secrets.WIN_SIGN_CERT }}
WIN_SIGN_PW: ${{ secrets.WIN_SIGN_PW }}
run: |
$buffer = [System.Convert]::FromBase64String($env:WIN_SIGN_CERT)
$certificate = [System.Security.Cryptography.X509Certificates.X509Certificate2]::New($buffer, $env:WIN_SIGN_PW)
Get-ChildItem -Path ./build -Filter *.msi -Recurse | Set-AuthenticodeSignature -HashAlgorithm SHA256 -Certificate $certificate -TimestampServer http://timestamp.digicert.com
#- name: 🗝️ Sign Windows Installer
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
# shell: powershell
# env:
# WIN_SIGN_CERT: ${{ secrets.WIN_SIGN_CERT }}
# WIN_SIGN_PW: ${{ secrets.WIN_SIGN_PW }}
# run: |
# $buffer = [System.Convert]::FromBase64String($env:WIN_SIGN_CERT)
# $certificate = [System.Security.Cryptography.X509Certificates.X509Certificate2]::New($buffer, $env:WIN_SIGN_PW)
# Get-ChildItem -Path ./build -Filter *.msi -Recurse | Set-AuthenticodeSignature -HashAlgorithm SHA256 -Certificate $certificate -TimestampServer http://timestamp.digicert.com
- name: ⬆️ Upload Windows Installer
uses: actions/upload-artifact@v3