10000 Handle invoking 'sign' when .NET tools are not on PATH (#231) · python/release-tools@c8a4771 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8a4771

Browse files
authored
Handle invoking 'sign' when .NET tools are not on PATH (#231)
1 parent 0a0f2d3 commit c8a4771

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

windows-release/sign-files.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ steps:
1212
- ${{ if parameters.SigningCertificate }}:
1313
- powershell: |
1414
dotnet tool install --global --prerelease sign
15-
$signtool = (gcm sign).Source
15+
$signtool = (gcm sign -EA SilentlyContinue).Source
16+
if (-not $signtool) {
17+
$signtool = (gi "${env:USERPROFILE}\.dotnet\tools\sign.exe").FullName
18+
}
1619
$signargs = 'code trusted-signing -v Information ' + `
1720
'-fd sha256 -t http://timestamp.acs.microsoft.com -td sha256 ' + `
1821
'-tse "$(TrustedSigningUri)" -tsa "$(TrustedSigningAccount)" -tscp "$(TrustedSigningCertificateName)" ' + `

0 commit comments

Comments
 (0)
0