42
42
43
43
- template : shouldSign.yml
44
44
45
- - powershell : |
45
+ - pwsh : |
46
46
$pkgFilter = if ( '$(Architecture)' -eq 'arm' ) { "arm32" } else { '$(Architecture)' }
47
47
if ($env:BuildConfiguration -eq 'minSize') { $pkgFilter += '-gc' }
48
48
60
60
- template : cloneToOfficialPath.yml
61
61
62
62
- pwsh : |
63
- # cleanup previous install
64
- if((Test-Path "${env:ProgramFiles(x86)}\WiX Toolset xcopy")) {
65
- Remove-Item "${env:ProgramFiles(x86)}\WiX Toolset xcopy" -Recurse -Force
66
- }
67
-
68
- $toolsDir = New-Item -ItemType Directory -Path '$(Build.ArtifactStagingDirectory)\tools'
69
- $wixUri = 'https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip'
70
- Invoke-RestMethod -Uri $wixUri -OutFile '$(Build.ArtifactStagingDirectory)\tools\wix.zip' -MaximumRetryCount 5 -RetryIntervalSec 10
71
-
72
- Import-Module '$(PowerShellRoot)/tools/releaseBuild/Images/microsoft_powershell_windowsservercore/wix.psm1'
73
- Install-WixZip -zipPath '$(Build.ArtifactStagingDirectory)\tools\wix.zip'
74
-
75
- $msixUrl = '$(makeappUrl)'
76
- Invoke-RestMethod -Uri $msixUrl -OutFile '\makeappx.zip'
77
- Expand-Archive '\makeappx.zip' -destination '\' -Force
78
-
79
- displayName: Install packaging tools
80
-
81
- - powershell : |
82
63
$zipPathString = '$(System.ArtifactsDirectory)\Symbols\results\*$(PkgFilter).zip'
83
64
Write-Verbose -Verbose "Zip Path: $zipPathString"
84
65
$zipPath = Get-Item $zipPathString
@@ -208,12 +189,12 @@ jobs:
208
189
shouldSign : $(SHOULD_SIGN)
209
190
displayName : Sign ThirdParty binari
8000
es
210
191
211
- - powershell : |
192
+ - pwsh : |
212
193
Get-ChildItem '$(System.ArtifactsDirectory)\thirdPartySigned\*'
213
194
displayName: Capture ThirdParty Signed files
214
195
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'true'))
215
196
216
- - powershell : |
197
+ - pwsh : |
217
198
Import-Module $(PowerShellRoot)/build.psm1 -Force
218
199
Import-Module $(PowerShellRoot)/tools/packaging -Force
219
200
$signedFilesPath = '$(System.ArtifactsDirectory)\thirdPartySigned'
@@ -231,7 +212,7 @@ jobs:
231
212
PackageVersion : $(Version)
232
213
sourceScanPath : ' $(PowerShellRoot)\tools'
233
214
234
- - powershell : |
215
+ - pwsh : |
235
216
Import-Module $(PowerShellRoot)/build.psm1 -Force
236
217
Import-Module $(PowerShellRoot)/tools/packaging -Force
237
218
@@ -272,7 +253,7 @@ jobs:
272
253
$(PowerShellRoot)/tools/releaseBuild/Images/microsoft_powershell_windowsservercore/PowerShellPackage.ps1 -BuildZip $signedPkg -location '$(PowerShellRoot)' -destination '$(System.ArtifactsDirectory)\pkgSigned' -Runtime $runtime -ReleaseTag '$(ReleaseTagVar)' @params
273
254
displayName: 'Build Windows Universal - $(Architecture) Package'
274
255
275
- - powershell : |
256
+ - pwsh : |
276
257
Get-ChildItem '$(System.ArtifactsDirectory)\pkgSigned' | ForEach-Object {
277
258
$packagePath = $_.FullName
278
259
Write-Host "Uploading $packagePath"
@@ -363,17 +344,12 @@ jobs:
363
344
sourceScanPath : ' $(PowerShellRoot)\tools'
364
345
snapshotForceEnabled : true
365
346
366
- - powershell : |
347
+ - pwsh : |
367
348
if ((Test-Path "\PowerShell")) {
368
349
Remove-Item -Path "\PowerShell" -Force -Recurse -Verbose
369
350
}
370
351
else {
371
352
Write-Verbose -Verbose -Message "No cleanup required."
372
353
}
373
-
374
- if((Test-Path "${env:ProgramFiles(x86)}\WiX Toolset xcopy")) {
375
- Write-Verbose -Verbose "Cleaning up Wix tools"
376
- Remove-Item "${env:ProgramFiles(x86)}\WiX Toolset xcopy" -Recurse -Force
377
- }
378
354
displayName: Clean up local Clone
379
355
condition: always()
0 commit comments