Skip to content

Commit

Permalink
Fix generation of MD5 table at end of Windows release build (pythonGH…
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba authored Apr 6, 2022
1 parent a96dfbd commit 35bcf9f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .azure-pipelines/windows-release/stage-publish-pythonorg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
- powershell: |
$failures = 0
gci "msi\*\*-webinstall.exe" -File | %{
gci "msi\*\*.exe" -File | %{
$d = mkdir "tests\$($_.BaseName)" -Force
gci $d -r -File | del
$ic = copy $_ $d -PassThru
Expand All @@ -155,7 +155,11 @@ jobs:
displayName: 'Test layouts'
- powershell: |
$hashes = gci doc\htmlhelp\python*.chm, msi\*\*.exe, embed\*.zip | `
$files = gci -File "msi\*\*.exe", "embed\*.zip"
if ("$(DoCHM)" -ieq "true") {
$files = $files + (gci -File "doc\htmlhelp\python*.chm")
}
$hashes = $files | `
Sort-Object Name | `
Format-Table Name, @{
Label="MD5";
Expand All @@ -170,9 +174,13 @@ jobs:
- powershell: |
"Copying:"
(gci msi\*\python*.asc, doc\htmlhelp\*.asc, embed\*.asc).FullName
$files = gci -File "msi\*\python*.asc", "embed\*.asc"
if ("$(DoCHM)" -ieq "true") {
$files = $files + (gci -File "doc\htmlhelp\*.asc")
}
$files.FullName
$d = mkdir "$(Build.ArtifactStagingDirectory)\hashes" -Force
move msi\*\python*.asc, doc\htmlhelp\*.asc, embed\*.asc $d -Force
move $files $d -Force
gci msi -Directory | %{ move "msi\$_\*.asc" (mkdir "$d\$_" -Force) }
workingDirectory: $(Build.BinariesDirectory)
displayName: 'Copy GPG signatures for build'
Expand Down

0 comments on commit 35bcf9f

Please sign in to comment.