mirror of https://github.com/python/cpython
bpo-37354: Sign Activate.ps1 for release (GH-15235)
This commit is contained in:
parent
732775d6be
commit
3e34a25a7a
|
@ -51,6 +51,10 @@ steps:
|
||||||
artifactName: tcltk_lib_amd64
|
artifactName: tcltk_lib_amd64
|
||||||
targetPath: $(Build.BinariesDirectory)\tcltk_lib_amd64
|
targetPath: $(Build.BinariesDirectory)\tcltk_lib_amd64
|
||||||
|
|
||||||
|
- powershell: |
|
||||||
|
copy $(Build.BinariesDirectory)\amd64\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
|
||||||
|
displayName: 'Copy signed files into sources'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
call Tools\msi\get_externals.bat
|
call Tools\msi\get_externals.bat
|
||||||
call PCbuild\find_python.bat
|
call PCbuild\find_python.bat
|
||||||
|
|
|
@ -122,7 +122,7 @@ jobs:
|
||||||
displayName: Publish Tcl/Tk Library
|
displayName: Publish Tcl/Tk Library
|
||||||
|
|
||||||
pool:
|
pool:
|
||||||
vmName: win2016-vs2017
|
vmName: windows-latest
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
|
|
|
@ -47,6 +47,10 @@ jobs:
|
||||||
artifactName: tcltk_lib_$(Name)
|
artifactName: tcltk_lib_$(Name)
|
||||||
targetPath: $(Build.BinariesDirectory)\tcltk_lib
|
targetPath: $(Build.BinariesDirectory)\tcltk_lib
|
||||||
|
|
||||||
|
- powershell: |
|
||||||
|
copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
|
||||||
|
displayName: 'Copy signed files into sources'
|
||||||
|
|
||||||
- template: ./layout-command.yml
|
- template: ./layout-command.yml
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
|
|
|
@ -40,6 +40,10 @@ jobs:
|
||||||
artifactName: tcltk_lib_$(Name)
|
artifactName: tcltk_lib_$(Name)
|
||||||
targetPath: $(Build.BinariesDirectory)\tcltk_lib
|
targetPath: $(Build.BinariesDirectory)\tcltk_lib
|
||||||
|
|
||||||
|
- powershell: |
|
||||||
|
copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
|
||||||
|
displayName: 'Copy signed files into sources'
|
||||||
|
|
||||||
- template: ./layout-command.yml
|
- template: ./layout-command.yml
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
|
|
|
@ -29,6 +29,10 @@ jobs:
|
||||||
artifactName: bin_$(Name)
|
artifactName: bin_$(Name)
|
||||||
targetPath: $(Build.BinariesDirectory)\bin
|
targetPath: $(Build.BinariesDirectory)\bin
|
||||||
|
|
||||||
|
- powershell: |
|
||||||
|
copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
|
||||||
|
displayName: 'Copy signed files into sources'
|
||||||
|
|
||||||
- template: ./layout-command.yml
|
- template: ./layout-command.yml
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
parameters:
|
||||||
|
Include: '*.exe, *.dll, *.pyd, *.cat, *.ps1'
|
||||||
|
Exclude: 'vcruntime*, libffi*, libcrypto*, libssl*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- job: Sign_Python
|
- job: Sign_Python
|
||||||
displayName: Sign Python binaries
|
displayName: Sign Python binaries
|
||||||
|
@ -17,7 +21,7 @@ jobs:
|
||||||
Name: amd64
|
Name: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: none
|
- template: ./checkout.yml
|
||||||
- template: ./find-sdk.yml
|
- template: ./find-sdk.yml
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
|
@ -31,13 +35,18 @@ jobs:
|
||||||
targetPath: $(Build.BinariesDirectory)\bin
|
targetPath: $(Build.BinariesDirectory)\bin
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
$files = (gi *.exe, *.dll, *.pyd, *.cat -Exclude vcruntime*, libffi*, libcrypto*, libssl*)
|
copy "$(Build.SourcesDirectory)\Lib\venv\scripts\common\Activate.ps1" .
|
||||||
|
displayName: 'Copy files from source'
|
||||||
|
workingDirectory: $(Build.BinariesDirectory)\bin
|
||||||
|
|
||||||
|
- powershell: |
|
||||||
|
$files = (gi ${{ parameters.Include }} -Exclude ${{ parameters.Exclude }})
|
||||||
signtool sign /a /n "$(SigningCertificate)" /fd sha256 /d "$(SigningDescription)" $files
|
signtool sign /a /n "$(SigningCertificate)" /fd sha256 /d "$(SigningDescription)" $files
|
||||||
displayName: 'Sign binaries'
|
displayName: 'Sign binaries'
|
||||||
workingDirectory: $(Build.BinariesDirectory)\bin
|
workingDirectory: $(Build.BinariesDirectory)\bin
|
||||||
|
|
||||||
- powershell: |
|
- powershell: |
|
||||||
$files = (gi *.exe, *.dll, *.pyd, *.cat -Exclude vcruntime*, libffi*, libcrypto*, libssl*)
|
$files = (gi ${{ parameters.Include }} -Exclude ${{ parameters.Exclude }})
|
||||||
$failed = $true
|
$failed = $true
|
||||||
foreach ($retry in 1..10) {
|
foreach ($retry in 1..10) {
|
||||||
signtool timestamp /t http://timestamp.verisign.com/scripts/timestamp.dll $files
|
signtool timestamp /t http://timestamp.verisign.com/scripts/timestamp.dll $files
|
||||||
|
|
Loading…
Reference in New Issue