bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)

(cherry picked from commit 777b611c8c)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2020-08-06 09:54:52 -07:00 committed by GitHub
parent b49b88a93a
commit 1437bb06a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 1 deletions

View file

@ -1,6 +1,12 @@
steps: steps:
- template: ./checkout.yml - template: ./checkout.yml
- powershell: |
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
displayName: 'Update signing description'
condition: and(succeeded(), not(variables['SigningDescription']))
- task: DownloadPipelineArtifact@1 - task: DownloadPipelineArtifact@1
displayName: 'Download artifact: doc' displayName: 'Download artifact: doc'
inputs: inputs:

View file

@ -105,9 +105,15 @@ jobs:
clean: all clean: all
steps: steps:
- checkout: none - template: ./checkout.yml
- template: ./find-sdk.yml - template: ./find-sdk.yml
- powershell: |
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
displayName: 'Update signing description'
condition: and(succeeded(), not(variables['SigningDescription']))
- task: DownloadBuildArtifacts@0 - task: DownloadBuildArtifacts@0
displayName: 'Download Artifact: unsigned_msix' displayName: 'Download Artifact: unsigned_msix'
inputs: inputs:

View file

@ -26,6 +26,12 @@ jobs:
- template: ./checkout.yml - template: ./checkout.yml
- template: ./find-sdk.yml - template: ./find-sdk.yml
- powershell: |
$d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
displayName: 'Update signing description'
condition: and(succeeded(), not(variables['SigningDescription']))
- powershell: | - powershell: |
Write-Host "##vso[build.addbuildtag]signed" Write-Host "##vso[build.addbuildtag]signed"
displayName: 'Add build tags' displayName: 'Add build tags'

View file

@ -0,0 +1 @@
Fixes the description that appears in UAC prompts.