|
| 1 | +steps: |
| 2 | + - template: ./checkout.yml |
| 3 | + |
| 4 | + - task: DownloadBuildArtifacts@0 |
| 5 | + displayName: 'Download artifact: doc' |
| 6 | + inputs: |
| 7 | + artifactName: doc |
| 8 | + downloadPath: $(Build.BinariesDirectory) |
| 9 | + |
| 10 | + - task: CopyFiles@2 |
| 11 | + displayName: 'Merge documentation files' |
| 12 | + inputs: |
| 13 | + sourceFolder: $(Build.BinariesDirectory)\doc |
| 14 | + targetFolder: $(Build.SourcesDirectory)\Doc\build |
| 15 | + contents: | |
| 16 | + htmlhelp\*.chm |
| 17 | +
|
| 18 | + - task: DownloadBuildArtifacts@0 |
| 19 | + displayName: 'Download artifact: bin_win32' |
| 20 | + inputs: |
| 21 | + artifactName: bin_win32 |
| 22 | + downloadPath: $(Build.BinariesDirectory) |
| 23 | + |
| 24 | + - task: DownloadBuildArtifacts@0 |
| 25 | + displayName: 'Download artifact: bin_win32_d' |
| 26 | + inputs: |
| 27 | + artifactName: bin_win32_d |
| 28 | + downloadPath: $(Build.BinariesDirectory) |
| 29 | + |
| 30 | + - task: CopyFiles@2 |
| 31 | + displayName: 'Merge win32 debug files' |
| 32 | + inputs: |
| 33 | + sourceFolder: $(Build.BinariesDirectory)\bin_win32_d |
| 34 | + targetFolder: $(Build.BinariesDirectory)\bin_win32 |
| 35 | + contents: | |
| 36 | + **\*_d.* |
| 37 | +
|
| 38 | + - task: DownloadBuildArtifacts@0 |
| 39 | + displayName: 'Download artifact: bin_amd64' |
| 40 | + inputs: |
| 41 | + artifactName: bin_amd64 |
| 42 | + downloadPath: $(Build.BinariesDirectory) |
| 43 | + |
| 44 | + - task: DownloadBuildArtifacts@0 |
| 45 | + displayName: 'Download artifact: bin_amd64_d' |
| 46 | + inputs: |
| 47 | + artifactName: bin_amd64_d |
| 48 | + downloadPath: $(Build.BinariesDirectory) |
| 49 | + |
| 50 | + - task: CopyFiles@2 |
| 51 | + displayName: 'Merge amd64 debug files' |
| 52 | + inputs: |
| 53 | + sourceFolder: $(Build.BinariesDirectory)\bin_amd64_d |
| 54 | + targetFolder: $(Build.BinariesDirectory)\bin_amd64 |
| 55 | + contents: | |
| 56 | + **\*_d.* |
| 57 | +
|
| 58 | + - task: DownloadBuildArtifacts@0 |
| 59 | + displayName: 'Download artifact: tcltk_lib_win32' |
| 60 | + inputs: |
| 61 | + artifactName: tcltk_lib_win32 |
| 62 | + downloadPath: $(Build.BinariesDirectory) |
| 63 | + |
| 64 | + - task: DownloadBuildArtifacts@0 |
| 65 | + displayName: 'Download artifact: tcltk_lib_amd64' |
| 66 | + inputs: |
| 67 | + artifactName: tcltk_lib_amd64 |
| 68 | + downloadPath: $(Build.BinariesDirectory) |
| 69 | + |
| 70 | + - script: | |
| 71 | + ren bin_win32 win32 |
| 72 | + ren bin_amd64 amd64 |
| 73 | + displayName: 'Correct artifact directory names' |
| 74 | + workingDirectory: $(Build.BinariesDirectory) |
| 75 | +
|
| 76 | + - script: | |
| 77 | + call Tools\msi\get_externals.bat |
| 78 | + call PCbuild\find_python.bat |
| 79 | + echo ##vso[task.setvariable variable=PYTHON]%PYTHON% |
| 80 | + call PCbuild/find_msbuild.bat |
| 81 | + echo ##vso[task.setvariable variable=MSBUILD]%MSBUILD% |
| 82 | + displayName: 'Get external dependencies' |
| 83 | +
|
| 84 | + - script: | |
| 85 | + %PYTHON% -m pip install blurb |
| 86 | + %PYTHON% -m blurb merge -f Misc\NEWS |
| 87 | + displayName: 'Merge NEWS file' |
| 88 | +
|
| 89 | + - script: | |
| 90 | + %MSBUILD% Tools\msi\launcher\launcher.wixproj |
| 91 | + displayName: 'Build launcher installer' |
| 92 | + env: |
| 93 | + Platform: x86 |
| 94 | + Py_OutDir: $(Build.BinariesDirectory) |
| 95 | +
|
| 96 | + - script: | |
| 97 | + %MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true /p:BuildForRelease=true |
| 98 | + %MSBUILD% Tools\msi\bundle\releaseweb.wixproj /t:Rebuild /p:RebuildAll=false /p:BuildForRelease=true |
| 99 | + displayName: 'Build win32 installer' |
| 100 | + env: |
| 101 | + Platform: x86 |
| 102 | + Py_OutDir: $(Build.BinariesDirectory) |
| 103 | + PYTHON: $(Build.BinariesDirectory)\win32\python.exe |
| 104 | + PYTHONHOME: $(Build.SourcesDirectory) |
| 105 | + TclTkLibraryDir: $(Build.BinariesDirectory)\tcltk_lib_win32 |
| 106 | +
|
| 107 | + - script: | |
| 108 | + %MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true /p:BuildForRelease=true |
| 109 | + %MSBUILD% Tools\msi\bundle\releaseweb.wixproj /t:Rebuild /p:RebuildAll=false /p:BuildForRelease=true |
| 110 | + displayName: 'Build amd64 installer' |
| 111 | + env: |
| 112 | + Platform: x64 |
| 113 | + Py_OutDir: $(Build.BinariesDirectory) |
| 114 | + PYTHON: $(Build.BinariesDirectory)\amd64\python.exe |
| 115 | + PYTHONHOME: $(Build.SourcesDirectory) |
| 116 | + TclTkLibraryDir: $(Build.BinariesDirectory)\tcltk_lib_amd64 |
| 117 | +
|
| 118 | + - task: CopyFiles@2 |
| 119 | + displayName: 'Assemble artifact: msi (1/2)' |
| 120 | + inputs: |
| 121 | + sourceFolder: $(Build.BinariesDirectory)\win32\en-us |
| 122 | + targetFolder: $(Build.ArtifactStagingDirectory)\msi\win32 |
| 123 | + contents: | |
| 124 | + *.msi |
| 125 | + *.cab |
| 126 | + *.exe |
| 127 | +
|
| 128 | + - task: CopyFiles@2 |
| 129 | + displayName: 'Assemble artifact: msi (2/2)' |
| 130 | + inputs: |
| 131 | + sourceFolder: $(Build.BinariesDirectory)\amd64\en-us |
| 132 | + targetFolder: $(Build.ArtifactStagingDirectory)\msi\amd64 |
| 133 | + contents: | |
| 134 | + *.msi |
| 135 | + *.cab |
| 136 | + *.exe |
| 137 | +
|
| 138 | + - task: PublishBuildArtifacts@1 |
| 139 | + displayName: 'Publish MSI' |
| 140 | + inputs: |
| 141 | + PathtoPublish: '$(Build.ArtifactStagingDirectory)\msi' |
| 142 | + ArtifactName: msi |
0 commit comments