Skip to content

Commit bbfb775

Browse files
committed
gh-355: Fixes source path for copying signed Activate script
1 parent 2d359f5 commit bbfb775

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

windows-release/msi-steps.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,20 @@ steps:
3131
${{ else }}:
3232
targetPath: $(Pipeline.Workspace)\${{ a.artifact }}
3333

34-
- ${{ if parameters.SigningCertificate }}:
35-
- powershell: |
36-
copy $(Py_OutDir)\amd64\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
37-
displayName: 'Copy signed files into sources'
34+
# Assuming we'll always run the amd64 build
35+
- ${{ if and(parameters.SigningCertificate, eq(a.artifact, 'bin_amd64')) }}:
36+
- powershell: >
37+
copy
38+
"${env:TARGET_PATH}\Activate.ps1"
39+
"$(Build.SourcesDirectory)\Lib\venv\scripts\common\Activate.ps1
40+
-Force
41+
-Verbose
42+
displayName: 'Copy signed files into sources'
43+
env:
44+
${{ if a.target }}:
45+
TARGET_PATH: ${{ a.target }}
46+
${{ else }}:
47+
TARGET_PATH: $(Pipeline.Workspace)\${{ a.artifact }}
3848
3949
- script: |
4050
call PCbuild\find_python.bat "%PYTHON%"

0 commit comments

Comments
 (0)