File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,12 +209,17 @@ jobs:
209209 -o bin/windows-app
210210
211211 - name : ' 🔐 Sign Windows App (if certificate available)'
212- if : ${{ secrets.WINDOWS_CERT_BASE64 != '' }}
213212 shell : pwsh
214213 env :
215214 WINDOWS_CERT_BASE64 : ${{ secrets.WINDOWS_CERT_BASE64 }}
216215 WINDOWS_CERT_PASSWORD : ${{ secrets.WINDOWS_CERT_PASSWORD }}
217216 run : |
217+ # Check if certificate is configured
218+ if ([string]::IsNullOrEmpty($env:WINDOWS_CERT_BASE64)) {
219+ Write-Host "⚠️ No Windows certificate configured, skipping signing"
220+ exit 0
221+ }
222+
218223 # Decode certificate
219224 $certBytes = [Convert]::FromBase64String($env:WINDOWS_CERT_BASE64)
220225 $certPath = "$(Get-Location)\code_signing.pfx"
@@ -236,7 +241,9 @@ jobs:
236241 }
237242
238243 # Clean up certificate
239- Remove-Item $certPath -Force
244+ if (Test-Path $certPath) {
245+ Remove-Item $certPath -Force
246+ }
240247
241248 - name : ' 📦 Create Windows ZIP'
242249 shell : bash
You can’t perform that action at this time.
0 commit comments