artifactName: 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: |
call Tools\msi\get_externals.bat
call PCbuild\find_python.bat
+parameters:
+ Include: '*.exe, *.dll, *.pyd, *.cat, *.ps1'
+ Exclude: 'vcruntime*, libffi*, libcrypto*, libssl*'
+
jobs:
- job: Sign_Python
displayName: Sign Python binaries
Name: amd64
steps:
- - checkout: none
+ - template: ./checkout.yml
- template: ./find-sdk.yml
- powershell: |
targetPath: $(Build.BinariesDirectory)\bin
- 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
displayName: 'Sign binaries'
workingDirectory: $(Build.BinariesDirectory)\bin
- powershell: |
- $files = (gi *.exe, *.dll, *.pyd, *.cat -Exclude vcruntime*, libffi*, libcrypto*, libssl*)
+ $files = (gi ${{ parameters.Include }} -Exclude ${{ parameters.Exclude }})
$failed = $true
foreach ($retry in 1..10) {
signtool timestamp /t http://timestamp.verisign.com/scripts/timestamp.dll $files