Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e34a25

Browse files
authored
bpo-37354: Sign Activate.ps1 for release (GH-15235)
1 parent 732775d commit 3e34a25

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.azure-pipelines/windows-release/msi-steps.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ steps:
5151
artifactName: tcltk_lib_amd64
5252
targetPath: $(Build.BinariesDirectory)\tcltk_lib_amd64
5353

54+
- powershell: |
55+
copy $(Build.BinariesDirectory)\amd64\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
56+
displayName: 'Copy signed files into sources'
57+
5458
- script: |
5559
call Tools\msi\get_externals.bat
5660
call PCbuild\find_python.bat

.azure-pipelines/windows-release/stage-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
displayName: Publish Tcl/Tk Library
123123

124124
pool:
125-
vmName: win2016-vs2017
125+
vmName: windows-latest
126126

127127
workspace:
128128
clean: all

.azure-pipelines/windows-release/stage-layout-full.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
artifactName: tcltk_lib_$(Name)
4848
targetPath: $(Build.BinariesDirectory)\tcltk_lib
4949

50+
- powershell: |
51+
copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
52+
displayName: 'Copy signed files into sources'
53+
5054
- template: ./layout-command.yml
5155

5256
- powershell: |

.azure-pipelines/windows-release/stage-layout-msix.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
artifactName: tcltk_lib_$(Name)
4141
targetPath: $(Build.BinariesDirectory)\tcltk_lib
4242

43+
- powershell: |
44+
copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
45+
displayName: 'Copy signed files into sources'
46+
4347
- template: ./layout-command.yml
4448

4549
- powershell: |

.azure-pipelines/windows-release/stage-layout-nuget.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
artifactName: bin_$(Name)
3030
targetPath: $(Build.BinariesDirectory)\bin
3131

32+
- powershell: |
33+
copy $(Build.BinariesDirectory)\bin\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
34+
displayName: 'Copy signed files into sources'
35+
3236
- template: ./layout-command.yml
3337

3438
- powershell: |

.azure-pipelines/windows-release/stage-sign.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
parameters:
2+
Include: '*.exe, *.dll, *.pyd, *.cat, *.ps1'
3+
Exclude: 'vcruntime*, libffi*, libcrypto*, libssl*'
4+
15
jobs:
26
- job: Sign_Python
37
displayName: Sign Python binaries
@@ -17,7 +21,7 @@ jobs:
1721
Name: amd64
1822

1923
steps:
20-
- checkout: none
24+
- template: ./checkout.yml
2125
- template: ./find-sdk.yml
2226

2327
- powershell: |
@@ -31,13 +35,18 @@ jobs:
3135
targetPath: $(Build.BinariesDirectory)\bin
3236

3337
- powershell: |
34-
$files = (gi *.exe, *.dll, *.pyd, *.cat -Exclude vcruntime*, libffi*, libcrypto*, libssl*)
38+
copy "$(Build.SourcesDirectory)\Lib\venv\scripts\common\Activate.ps1" .
39+
displayName: 'Copy files from source'
40+
workingDirectory: $(Build.BinariesDirectory)\bin
41+
42+
- powershell: |
43+
$files = (gi ${{ parameters.Include }} -Exclude ${{ parameters.Exclude }})
3544
signtool sign /a /n "$(SigningCertificate)" /fd sha256 /d "$(SigningDescription)" $files
3645
displayName: 'Sign binaries'
3746
workingDirectory: $(Build.BinariesDirectory)\bin
3847
3948
- powershell: |
40-
$files = (gi *.exe, *.dll, *.pyd, *.cat -Exclude vcruntime*, libffi*, libcrypto*, libssl*)
49+
$files = (gi ${{ parameters.Include }} -Exclude ${{ parameters.Exclude }})
4150
$failed = $true
4251
foreach ($retry in 1..10) {
4352
signtool timestamp /t http://timestamp.verisign.com/scripts/timestamp.dll $files

0 commit comments

Comments
 (0)