2019-06-14 12:29:20 -03:00
|
|
|
steps:
|
|
|
|
- template: ./checkout.yml
|
|
|
|
|
2020-08-06 13:36:22 -03:00
|
|
|
- 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']))
|
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: doc'
|
|
|
|
inputs:
|
|
|
|
artifactName: doc
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\doc
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Merge documentation files'
|
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Build.BinariesDirectory)\doc
|
|
|
|
targetFolder: $(Build.SourcesDirectory)\Doc\build
|
|
|
|
contents: |
|
|
|
|
htmlhelp\*.chm
|
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: bin_win32'
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_win32
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\win32
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: bin_win32_d'
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_win32_d
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\win32
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: bin_amd64'
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_amd64
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\amd64
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: bin_amd64_d'
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_amd64_d
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\amd64
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2022-01-28 12:48:06 -04:00
|
|
|
- task: DownloadPipelineArtifact@1
|
|
|
|
displayName: 'Download artifact: bin_arm64'
|
|
|
|
condition: and(succeeded(), eq(variables['PublishARM64'], 'true'))
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_arm64
|
|
|
|
targetPath: $(Build.BinariesDirectory)\arm64
|
|
|
|
|
|
|
|
- task: DownloadPipelineArtifact@1
|
|
|
|
displayName: 'Download artifact: bin_arm64_d'
|
|
|
|
condition: and(succeeded(), eq(variables['PublishARM64'], 'true'))
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_arm64_d
|
|
|
|
targetPath: $(Build.BinariesDirectory)\arm64
|
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: tcltk_lib_win32'
|
|
|
|
inputs:
|
|
|
|
artifactName: tcltk_lib_win32
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\tcltk_lib_win32
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: tcltk_lib_amd64'
|
|
|
|
inputs:
|
|
|
|
artifactName: tcltk_lib_amd64
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\tcltk_lib_amd64
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-08-12 18:09:36 -03:00
|
|
|
- powershell: |
|
|
|
|
copy $(Build.BinariesDirectory)\amd64\Activate.ps1 Lib\venv\scripts\common\Activate.ps1 -Force
|
|
|
|
displayName: 'Copy signed files into sources'
|
2019-11-20 13:30:47 -04:00
|
|
|
condition: and(succeeded(), variables['SigningCertificate'])
|
2019-08-12 18:09:36 -03:00
|
|
|
|
2019-06-14 12:29:20 -03:00
|
|
|
- script: |
|
|
|
|
call Tools\msi\get_externals.bat
|
|
|
|
call PCbuild\find_python.bat
|
|
|
|
echo ##vso[task.setvariable variable=PYTHON]%PYTHON%
|
|
|
|
call PCbuild/find_msbuild.bat
|
|
|
|
echo ##vso[task.setvariable variable=MSBUILD]%MSBUILD%
|
|
|
|
displayName: 'Get external dependencies'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
%PYTHON% -m pip install blurb
|
|
|
|
%PYTHON% -m blurb merge -f Misc\NEWS
|
|
|
|
displayName: 'Merge NEWS file'
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
%MSBUILD% Tools\msi\launcher\launcher.wixproj
|
|
|
|
displayName: 'Build launcher installer'
|
|
|
|
env:
|
|
|
|
Platform: x86
|
|
|
|
Py_OutDir: $(Build.BinariesDirectory)
|
|
|
|
|
|
|
|
- script: |
|
2019-06-14 18:19:25 -03:00
|
|
|
%MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Build win32 installer'
|
|
|
|
env:
|
|
|
|
Platform: x86
|
|
|
|
Py_OutDir: $(Build.BinariesDirectory)
|
|
|
|
PYTHON: $(Build.BinariesDirectory)\win32\python.exe
|
2022-01-28 12:48:06 -04:00
|
|
|
PythonForBuild: $(Build.BinariesDirectory)\win32\python.exe
|
2019-06-14 12:29:20 -03:00
|
|
|
PYTHONHOME: $(Build.SourcesDirectory)
|
|
|
|
TclTkLibraryDir: $(Build.BinariesDirectory)\tcltk_lib_win32
|
2019-06-14 18:19:25 -03:00
|
|
|
BuildForRelease: true
|
|
|
|
SuppressMinGWLib: true
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
- script: |
|
2019-06-14 18:19:25 -03:00
|
|
|
%MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Build amd64 installer'
|
|
|
|
env:
|
|
|
|
Platform: x64
|
|
|
|
Py_OutDir: $(Build.BinariesDirectory)
|
|
|
|
PYTHON: $(Build.BinariesDirectory)\amd64\python.exe
|
2022-01-28 12:48:06 -04:00
|
|
|
PythonForBuild: $(Build.BinariesDirectory)\amd64\python.exe
|
2019-06-14 12:29:20 -03:00
|
|
|
PYTHONHOME: $(Build.SourcesDirectory)
|
|
|
|
TclTkLibraryDir: $(Build.BinariesDirectory)\tcltk_lib_amd64
|
2019-06-14 18:19:25 -03:00
|
|
|
BuildForRelease: true
|
|
|
|
SuppressMinGWLib: true
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2022-01-28 12:48:06 -04:00
|
|
|
- script: |
|
|
|
|
%MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true
|
|
|
|
displayName: 'Build arm64 installer'
|
|
|
|
condition: and(succeeded(), eq(variables['PublishARM64'], 'true'))
|
|
|
|
env:
|
|
|
|
Platform: ARM64
|
|
|
|
Py_OutDir: $(Build.BinariesDirectory)
|
|
|
|
PYTHON: $(Build.BinariesDirectory)\win32\python.exe
|
|
|
|
PythonForBuild: $(Build.BinariesDirectory)\win32\python.exe
|
|
|
|
PYTHONHOME: $(Build.SourcesDirectory)
|
|
|
|
BuildForRelease: true
|
|
|
|
SuppressMinGWLib: true
|
|
|
|
|
2019-06-14 12:29:20 -03:00
|
|
|
- task: CopyFiles@2
|
2022-01-28 12:48:06 -04:00
|
|
|
displayName: 'Assemble artifact: msi (win32)'
|
2019-06-14 12:29:20 -03:00
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Build.BinariesDirectory)\win32\en-us
|
|
|
|
targetFolder: $(Build.ArtifactStagingDirectory)\msi\win32
|
|
|
|
contents: |
|
|
|
|
*.msi
|
|
|
|
*.cab
|
|
|
|
*.exe
|
|
|
|
|
|
|
|
- task: CopyFiles@2
|
2022-01-28 12:48:06 -04:00
|
|
|
displayName: 'Assemble artifact: msi (amd64)'
|
2019-06-14 12:29:20 -03:00
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Build.BinariesDirectory)\amd64\en-us
|
|
|
|
targetFolder: $(Build.ArtifactStagingDirectory)\msi\amd64
|
|
|
|
contents: |
|
|
|
|
*.msi
|
|
|
|
*.cab
|
|
|
|
*.exe
|
|
|
|
|
2022-01-28 12:48:06 -04:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: 'Assemble artifact: msi (arm64)'
|
|
|
|
condition: and(succeeded(), eq(variables['PublishARM64'], 'true'))
|
|
|
|
inputs:
|
|
|
|
sourceFolder: $(Build.BinariesDirectory)\arm64\en-us
|
|
|
|
targetFolder: $(Build.ArtifactStagingDirectory)\msi\arm64
|
|
|
|
contents: |
|
|
|
|
*.msi
|
|
|
|
*.cab
|
|
|
|
*.exe
|
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Publish MSI'
|
|
|
|
inputs:
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\msi'
|
|
|
|
artifactName: msi
|