Skip to content

Commit

Permalink
Merge branch 'master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
Aszusz committed Jan 22, 2024
2 parents 39a98a6 + 53ba5b1 commit e5c11f4
Showing 1 changed file with 10 additions and 26 deletions.
36 changes: 10 additions & 26 deletions .github/workflows/windows-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,33 +51,17 @@ jobs:
run: |
makensis /DPRODUCT_VERSION=${{ steps.readversion.outputs.info }} Templates/installer/windows-installer-dev.nsi
- name: Sign installer
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\cert.txt -Value ${{ secrets.WIN_CERT }}
certutil -decode certificate\cert.txt certificate\cert.pfx
Import-PfxCertificate `
-FilePath certificate\cert.pfx `
-CertStoreLocation Cert:\CurrentUser\My `
-Password (ConvertTo-SecureString -String ${{ secrets.WIN_PASS }} -Force -AsPlainText)
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe' sign `
/debug `
/fd SHA256 `
/p ${{ secrets.WIN_PASS }} `
/f certificate\cert.pfx `
/td sha256 `
/tr 'http://timestamp.digicert.com' `
Templates/installer/SuperHumanInstallerDev-Setup.exe
Remove-Item -Recurse -Force certificate
# Sign installer

- name: Verify signature
if: ${{ false }}
run: |
& 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x86/signtool.exe' `
verify Templates/installer/SuperHumanInstallerDev-Setup.exe
- name: Sign installer
uses: Moonshine-IDE/[email protected]
with:
bin-path: Templates/installer/SuperHumanInstallerDev-Setup.exe
sm-host: ${{ secrets.SM_HOST }}
sm-api-key: ${{ secrets.SM_API_KEY }}
sm-client-cert-file-b64: ${{ secrets.SM_CLIENT_CERT_FILE_B64 }}
sm-client-cert-password: ${{ secrets.SM_CLIENT_CERT_PASSWORD }}
sm-code-signing-cert-sha1-hash: ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }}

- name: Upload installer
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit e5c11f4

Please sign in to comment.