File tree 5 files changed +17
-8
lines changed
.azure-pipelines/windows-release
5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,11 @@ jobs:
120
120
artifactName : unsigned_msix
121
121
downloadPath : $(Build.BinariesDirectory)
122
122
123
+ # MSIX must be signed and timestamped simultaneously
123
124
- powershell : |
124
125
$failed = $true
125
126
foreach ($retry in 1..3) {
126
- signtool sign /a /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign .com/scripts/timestamp.dll /d "$(SigningDescription)" (gi *.msix)
127
+ signtool sign /a /n "$(SigningCertificate)" /fd sha256 /tr http://timestamp.digicert .com/ /td sha256 /d "$(SigningDescription)" (gi *.msix)
127
128
if ($?) {
128
129
$failed = $false
129
130
break
Original file line number Diff line number Diff line change 4
4
condition : and(succeeded(), eq(variables['DoNuget'], 'true'))
5
5
6
6
pool :
7
- vmImage : windows-2019
7
+ name : ' Windows Release '
8
8
9
9
workspace :
10
10
clean : all
36
36
nuget pack "$(Build.BinariesDirectory)\layout\python.nuspec" -OutputDirectory $(Build.ArtifactStagingDirectory) -NoPackageAnalysis -NonInteractive
37
37
displayName: 'Create nuget package'
38
38
39
+ - powershell : |
40
+ gci *.nupkg | %{
41
+ nuget sign "$_" -CertificateSubjectName "$(SigningCertificate)" -Timestamper http://timestamp.digicert.com/ -Overwrite
42
+ }
43
+ displayName: 'Sign nuget package'
44
+ workingDirectory: $(Build.ArtifactStagingDirectory)
45
+ condition: and(succeeded(), variables['SigningCertificate'])
46
+
39
47
- task : PublishBuildArtifacts@1
40
48
displayName : ' Publish Artifact: nuget'
41
49
inputs :
Original file line number Diff line number Diff line change 57
57
$files = (gi ${{ parameters.Include }} -Exclude ${{ parameters.Exclude }})
58
58
$failed = $true
59
59
foreach ($retry in 1..10) {
60
- signtool timestamp /t http://timestamp.verisign .com/scripts/timestamp.dll $files
60
+ signtool timestamp /tr http://timestamp.digicert .com/ /td sha256 $files
61
61
if ($?) {
62
62
$failed = $false
63
63
break
Original file line number Diff line number Diff line change @@ -176,8 +176,8 @@ public override bool Execute() {
176
176
<SdkBinPath Condition =" !Exists($(SdkBinPath))" >$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)\bin\x86</SdkBinPath >
177
177
<SdkBinPath Condition =" !Exists($(SdkBinPath))" >$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86</SdkBinPath >
178
178
<SdkBinPath Condition =" !Exists($(SdkBinPath))" >$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\</SdkBinPath >
179
- <_SignCommand Condition =" Exists($(SdkBinPath)) and '$(SigningCertificate)' != '' and $(SupportSigning)" >"$(SdkBinPath)\signtool.exe" sign /a /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign .com/scripts/timestamp.dll /d "Python $(PythonVersion)"</_SignCommand >
180
- <_SignCommand Condition =" Exists($(SdkBinPath)) and '$(SigningCertificateSha1)' != '' and $(SupportSigning)" >"$(SdkBinPath)\signtool.exe" sign /a /sha1 "$(SigningCertificateSha1)" /fd sha256 /t http://timestamp.verisign .com/scripts/timestamp.dll /d "Python $(PythonVersion)"</_SignCommand >
179
+ <_SignCommand Condition =" Exists($(SdkBinPath)) and '$(SigningCertificate)' != '' and $(SupportSigning)" >"$(SdkBinPath)\signtool.exe" sign /a /n "$(SigningCertificate)" /fd sha256 /tr http://timestamp.digicert .com/ /td sha256 /d "Python $(PythonVersion)"</_SignCommand >
180
+ <_SignCommand Condition =" Exists($(SdkBinPath)) and '$(SigningCertificateSha1)' != '' and $(SupportSigning)" >"$(SdkBinPath)\signtool.exe" sign /a /sha1 "$(SigningCertificateSha1)" /fd sha256 /tr http://timestamp.digicert .com/ /td sha256 /d "Python $(PythonVersion)"</_SignCommand >
181
181
<_MakeCatCommand Condition =" Exists($(SdkBinPath))" >"$(SdkBinPath)\makecat.exe"</_MakeCatCommand >
182
182
</PropertyGroup >
183
183
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ function Sign-File {
37
37
38
38
foreach ($a in $files ) {
39
39
if ($certsha1 ) {
40
- SignTool sign / sha1 $certsha1 / fd sha256 / t http:// timestamp.verisign .com / scripts / timestamp.dll / d $description $a
40
+ SignTool sign / sha1 $certsha1 / fd sha256 / tr http:// timestamp.digicert .com / / td sha256 / d $description $a
41
41
} elseif ($certname ) {
42
- SignTool sign / a / n $certname / fd sha256 / t http:// timestamp.verisign .com / scripts / timestamp.dll / d $description $a
42
+ SignTool sign / a / n $certname / fd sha256 / tr http:// timestamp.digicert .com / / td sha256 / d $description $a
43
43
} elseif ($certfile ) {
44
- SignTool sign / f $certfile / fd sha256 / t http:// timestamp.verisign .com / scripts / timestamp.dll / d $description $a
44
+ SignTool sign / f $certfile / fd sha256 / tr http:// timestamp.digicert .com / / td sha256 / d $description $a
45
45
}
46
46
}
47
47
}
You can’t perform that action at this time.
0 commit comments