Skip to content

A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.

feat: enhance installer signing process with certificate validation and test signing support

CristianOlivera1df86558c33ed
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 849ca0f..41e4977 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -129,10 +129,28 @@ jobs:
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
+ SIGNPATH_SIGNING_POLICY_SLUG: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
run: |
$setup = (Resolve-Path "target/release/bundle/nsis").Path + "/Muelle_${env:VERSION}_x64-setup.exe"
Copy-Item sign/installer-signed/Muelle-Setup.exe $setup -Force
- $signature = Get-AuthenticodeSignature $setup
+ $signature = Get-AuthenticodeSignature -LiteralPath $setup
+ if (-not $signature.SignerCertificate) { throw 'The installer has no Authenticode signer certificate' }
+ if ($env:SIGNPATH_SIGNING_POLICY_SLUG -eq 'test-signing') {
+ $testThumbprint = '3A93532146A10D3B1FA8DEAF4192AD4A232FFCAC'
+ if ($signature.SignerCertificate.Thumbprint -ne $testThumbprint) {
+ throw "Unexpected SignPath test certificate: $($signature.SignerCertificate.Thumbprint)"
+ }
+ $certificatePath = Join-Path $env:RUNNER_TEMP 'muelle-signpath-test.cer'
+ [IO.File]::WriteAllBytes(
+ $certificatePath,
+ $signature.SignerCertificate.Export(
+ [Security.Cryptography.X509Certificates.X509ContentType]::Cert
+ )
+ )
+ Import-Certificate -FilePath $certificatePath -CertStoreLocation Cert:\CurrentUser\Root | Out-Null
+ Remove-Item -LiteralPath $certificatePath
+ $signature = Get-AuthenticodeSignature -LiteralPath $setup
+ }
if ($signature.Status -ne 'Valid') { throw "The installer signature is $($signature.Status)" }
Push-Location apps/settings
pnpm tauri signer sign --app-version $env:VERSION $setup