Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a486a471
Commit
a486a471
authored
Oct 13, 2018
by
Steve Dower
Committed by
Miss Islington (bot)
Oct 13, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes issues in Windows release upload script (GH-9845)
parent
d4d60134
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Tools/msi/uploadrelease.ps1
Tools/msi/uploadrelease.ps1
+8
-3
No files found.
Tools/msi/uploadrelease.ps1
View file @
a486a471
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment