File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,15 @@ jobs:
3131 WIN_CERT_BASE64 : ${{ secrets.WIN_CERT_BASE64 }}
3232 if : env.WIN_CERT_BASE64 != ''
3333 run : |
34- [IO.File]::WriteAllBytes("$env:TEMP\\win_cert.p12", [Convert]::FromBase64String("$env:WIN_CERT_BASE64"))
35- Write-Host "Wrote cert to $env:TEMP\\win_cert.p12"
34+ $certPath = Join-Path $env:TEMP "win_cert.p12"
35+ [IO.File]::WriteAllBytes($certPath, [Convert]::FromBase64String($env:WIN_CERT_BASE64))
36+ Write-Host "Wrote cert to $certPath"
37+ echo "CSC_LINK=file://$certPath" >> $env:GITHUB_ENV
38+ echo "CSC_KEY_PASSWORD=${{ secrets.WIN_CERT_PASSWORD }}" >> $env:GITHUB_ENV
3639 shell : powershell
3740
3841 - name : Build (Vite + electron-builder)
3942 env :
40- CSC_LINK : ${{ format('file://{0}\\win_cert.p12', runner.temp) }}
41- CSC_KEY_PASSWORD : ${{ secrets.WIN_CERT_PASSWORD }}
4243 CSC_IDENTITY_AUTO_DISCOVERY : ' false'
4344 run : |
4445 npm run build --if-present
You can’t perform that action at this time.
0 commit comments