diff options
author | Steve Dower <steve.dower@microsoft.com> | 2019-04-12 18:24:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-12 18:24:15 (GMT) |
commit | 606c66a17faf34a4e74d4829e8fe5ad0d2879434 (patch) | |
tree | 874e15538953bc4011a58483cb0fae4bf1ae0acc /Tools/msi/sdktools.psm1 | |
parent | f4e5661e85ac41c987165246d2b33f363cd01e34 (diff) | |
download | cpython-606c66a17faf34a4e74d4829e8fe5ad0d2879434.zip cpython-606c66a17faf34a4e74d4829e8fe5ad0d2879434.tar.gz cpython-606c66a17faf34a4e74d4829e8fe5ad0d2879434.tar.bz2 |
Allow Windows layout builds to fully skip code signing (GH-12808)
Diffstat (limited to 'Tools/msi/sdktools.psm1')
-rw-r--r-- | Tools/msi/sdktools.psm1 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/msi/sdktools.psm1 b/Tools/msi/sdktools.psm1 index 61edb34..8081b10 100644 --- a/Tools/msi/sdktools.psm1 +++ b/Tools/msi/sdktools.psm1 @@ -31,6 +31,10 @@ function Sign-File { $certfile = $env:SigningCertificateFile; } + if (-not ($certsha1 -or $certname -or $certfile)) { + throw "No signing certificate specified" + } + foreach ($a in $files) { if ($certsha1) { SignTool sign /sha1 $certsha1 /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a @@ -38,8 +42,6 @@ function Sign-File { SignTool sign /a /n $certname /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a } elseif ($certfile) { SignTool sign /f $certfile /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a - } else { - SignTool sign /a /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d $description $a } } } |