summaryrefslogtreecommitdiffstats
path: root/Tools/msi
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2018-10-13 17:10:42 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-10-13 17:10:42 (GMT)
commita486a4712c3357250dbebb55ee74d2693dd79148 (patch)
treec9bab400d32320f6b5d7bd7e400cb0b400a56f9f /Tools/msi
parentd4d60134b29290049e28df54f23493de4f1824b6 (diff)
downloadcpython-a486a4712c3357250dbebb55ee74d2693dd79148.zip
cpython-a486a4712c3357250dbebb55ee74d2693dd79148.tar.gz
cpython-a486a4712c3357250dbebb55ee74d2693dd79148.tar.bz2
Fixes issues in Windows release upload script (GH-9845)
Diffstat (limited to 'Tools/msi')
-rw-r--r--Tools/msi/uploadrelease.ps111
1 files changed, 8 insertions, 3 deletions
diff --git a/Tools/msi/uploadrelease.ps1 b/Tools/msi/uploadrelease.ps1
index 3e01d1e..491df80 100644
--- a/Tools/msi/uploadrelease.ps1
+++ b/Tools/msi/uploadrelease.ps1
@@ -39,6 +39,8 @@ param(
if (-not $build) { throw "-build option is required" }
if (-not $user) { throw "-user option is required" }
+$tools = $script:MyInvocation.MyCommand.Path | Split-Path -parent;
+
if (-not ((Test-Path "$build\win32\python-*.exe") -or (Test-Path "$build\amd64\python-*.exe"))) {
throw "-build argument does not look like a 'build' directory"
}
@@ -105,7 +107,7 @@ if (-not $skipupload) {
if (-not $skippurge) {
# Run a CDN purge
- py purge.py "$($p[0])$($p[1])"
+ py $tools\purge.py "$($p[0])$($p[1])"
}
if (-not $skiptest) {
@@ -126,8 +128,11 @@ if (-not $skiptest) {
if (-not $skiphash) {
# Display MD5 hash and size of each downloadable file
pushd $build
- gci python*.chm, *\*.exe, *\*.zip | `
+ $hashes = gci python*.chm, *\*.exe, *\*.zip | `
Sort-Object Name | `
- Format-Table Name, @{Label="MD5"; Expression={(Get-FileHash $_ -Algorithm MD5).Hash}}, Length
+ Format-Table Name, @{Label="MD5"; Expression={(Get-FileHash $_ -Algorithm MD5).Hash}}, Length -AutoSize | `
+ Out-String -Width 4096
+ $hashes | clip
+ $hashes
popd
}