2019-06-14 12:29:20 -03:00
|
|
|
jobs:
|
|
|
|
- job: Make_MSIX_Layout
|
|
|
|
displayName: Make MSIX layout
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmName: win2016-vs2017
|
|
|
|
|
|
|
|
workspace:
|
|
|
|
clean: all
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
#win32:
|
|
|
|
# Name: win32
|
2019-11-20 13:30:47 -04:00
|
|
|
# Python: $(Build.BinariesDirectory)\bin\python.exe
|
2019-06-14 12:29:20 -03:00
|
|
|
# PYTHONHOME: $(Build.SourcesDirectory)
|
2019-11-20 13:30:47 -04:00
|
|
|
# TclLibrary: $(Build.BinariesDirectory)\tcltk_lib\tcl8
|
2019-06-14 12:29:20 -03:00
|
|
|
amd64:
|
|
|
|
Name: amd64
|
2019-11-20 13:30:47 -04:00
|
|
|
Python: $(Build.BinariesDirectory)\bin\python.exe
|
|
|
|
PYTHONHOME: $(Build.SourcesDirectory)
|
|
|
|
TclLibrary: $(Build.BinariesDirectory)\tcltk_lib\tcl8
|
|
|
|
arm64:
|
|
|
|
Name: arm64
|
|
|
|
HostArch: amd64
|
|
|
|
Python: $(Build.BinariesDirectory)\bin_amd64\python.exe
|
2019-06-14 12:29:20 -03:00
|
|
|
PYTHONHOME: $(Build.SourcesDirectory)
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- template: ./checkout.yml
|
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: DownloadPipelineArtifact@1
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Download artifact: bin_$(Name)'
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_$(Name)
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\bin
|
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_$(Name)_d'
|
|
|
|
inputs:
|
|
|
|
artifactName: bin_$(Name)_d
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\bin
|
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_$(Name)'
|
2019-11-20 13:30:47 -04:00
|
|
|
condition: and(succeeded(), variables['TclLibrary'])
|
2019-06-14 12:29:20 -03:00
|
|
|
inputs:
|
|
|
|
artifactName: tcltk_lib_$(Name)
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\tcltk_lib
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-08-12 18:09:36 -03:00
|
|
|
- powershell: |
|
2019-11-20 13:30:47 -04:00
|
|
|
copy "$(Build.BinariesDirectory)\bin\Activate.ps1" Lib\venv\scripts\common\Activate.ps1 -Force
|
2019-08-12 18:09:36 -03:00
|
|
|
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
|
|
|
- template: ./layout-command.yml
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
Remove-Item "$(Build.ArtifactStagingDirectory)\appx-store" -Recurse -Force -EA 0
|
|
|
|
$(LayoutCmd) --copy "$(Build.ArtifactStagingDirectory)\appx-store" --preset-appx --precompile
|
|
|
|
displayName: 'Generate store APPX layout'
|
|
|
|
env:
|
2019-11-20 13:30:47 -04:00
|
|
|
TCL_LIBRARY: $(TclLibrary)
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Publish Artifact: layout_appxstore_$(Name)'
|
|
|
|
inputs:
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\appx-store'
|
|
|
|
artifactName: layout_appxstore_$(Name)
|
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: cert'
|
|
|
|
condition: and(succeeded(), variables['SigningCertificate'])
|
|
|
|
inputs:
|
|
|
|
artifactName: cert
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: $(Build.BinariesDirectory)\cert
|
2019-06-14 12:29:20 -03:00
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
$info = (gc "$(Build.BinariesDirectory)\cert\certinfo.json" | ConvertFrom-JSON)
|
|
|
|
Write-Host "Side-loadable APPX must be signed with '$($info.Subject)'"
|
|
|
|
Write-Host "##vso[task.setvariable variable=APPX_DATA_PUBLISHER]$($info.Subject)"
|
|
|
|
Write-Host "##vso[task.setvariable variable=APPX_DATA_SHA256]$($info.SHA256)"
|
|
|
|
displayName: 'Override signing parameters'
|
|
|
|
condition: and(succeeded(), variables['SigningCertificate'])
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
Remove-Item "$(Build.ArtifactStagingDirectory)\appx" -Recurse -Force -EA 0
|
|
|
|
$(LayoutCmd) --copy "$(Build.ArtifactStagingDirectory)\appx" --preset-appx --precompile --include-symbols --include-tests
|
|
|
|
displayName: 'Generate sideloading APPX layout'
|
|
|
|
env:
|
2019-11-20 13:30:47 -04:00
|
|
|
TCL_LIBRARY: $(TclLibrary)
|
2019-06-14 12:29:20 -03:00
|
|
|
|
2019-06-17 19:27:36 -03:00
|
|
|
- task: PublishPipelineArtifact@0
|
2019-06-14 12:29:20 -03:00
|
|
|
displayName: 'Publish Artifact: layout_appx_$(Name)'
|
|
|
|
inputs:
|
2019-06-17 19:27:36 -03:00
|
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\appx'
|
|
|
|
artifactName: layout_appx_$(Name)
|