File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -152,28 +152,6 @@ jobs:
152152 xcrun notarytool submit notarize.zip --apple-id "${APPLE_ID}" --team-id "${APPLE_TEAM_ID}" --password "${APPLE_PASSWORD}" --wait
153153 rm -rf notarize notarize.zip
154154
155- - name : Sign Windows binary
156- if : runner.os == 'Windows'
157- shell : pwsh
158- env :
159- WINDOWS_SIGNING_CERT : ${{ secrets.WINDOWS_SIGNING_CERT_BASE64 }}
160- WINDOWS_SIGNING_CERT_PASSWORD : ${{ secrets.WINDOWS_SIGNING_CERT_PASSWORD }}
161- run : |
162- if (-not $env:WINDOWS_SIGNING_CERT) {
163- throw "WINDOWS_SIGNING_CERT_BASE64 secret is required"
164- }
165- if (-not $env:WINDOWS_SIGNING_CERT_PASSWORD) {
166- throw "WINDOWS_SIGNING_CERT_PASSWORD secret is required"
167- }
168- $pfxPath = Join-Path $env:RUNNER_TEMP "codesign.pfx"
169- [IO.File]::WriteAllBytes($pfxPath, [Convert]::FromBase64String($env:WINDOWS_SIGNING_CERT))
170- $signtool = Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\bin" -Filter signtool.exe -Recurse | Sort-Object FullName -Descending | Select-Object -First 1
171- if (-not $signtool) {
172- throw "signtool.exe not found"
173- }
174- & $signtool.FullName sign /fd SHA256 /td SHA256 /tr http://timestamp.digicert.com /f $pfxPath /p $env:WINDOWS_SIGNING_CERT_PASSWORD "target\${env:TARGET}\release\lapdev-cli.exe"
175- Remove-Item $pfxPath -Force
176-
177155 - name : Prepare artifact (Unix)
178156 if : runner.os != 'Windows'
179157 run : |
You can’t perform that action at this time.
0 commit comments