@@ -432,21 +432,21 @@ function Ensure-WindowsSDK {
432
432
}
433
433
434
434
function Ensure-SwiftToolchain ($Arch ) {
435
- if (-not (Test-Path $BinaryCache \wix- 4.0 .1 . zip)) {
435
+ if (-not (Test-Path $BinaryCache \wix- 4.0 .4 . zip)) {
436
436
Write-Output " WiX not found. Downloading from nuget.org..."
437
- Invoke-Program curl.exe - sL https:// www.nuget.org/ api/ v2/ package/ wix/ 4.0 .1 -- output $BinaryCache \wix- 4.0 .1 . zip -- create- dirs
437
+ Invoke-Program curl.exe - sL https:// www.nuget.org/ api/ v2/ package/ wix/ 4.0 .4 -- output $BinaryCache \wix- 4.0 .4 . zip -- create- dirs
438
438
}
439
439
440
440
if (-not $ToBatch ) {
441
- $SHA256 = Get-FileHash - Path " $BinaryCache \wix-4.0.1 .zip" - Algorithm SHA256
442
- if ($SHA256.Hash -ne " 756AD3115F0CE808313266F4E401C0F520D319211DE0B9D8D7E7697020E0C461 " ) {
443
- throw " WiX SHA256 mismatch ($ ( $SHA256.Hash ) vs 756AD3115F0CE808313266F4E401C0F520D319211DE0B9D8D7E7697020E0C461 )"
441
+ $SHA256 = Get-FileHash - Path " $BinaryCache \wix-4.0.4 .zip" - Algorithm SHA256
442
+ if ($SHA256.Hash -ne " A9CA12214E61BB49430A8C6E5E48AC5AE6F27DC82573B5306955C4D35F2D34E2 " ) {
443
+ throw " WiX SHA256 mismatch ($ ( $SHA256.Hash ) vs A9CA12214E61BB49430A8C6E5E48AC5AE6F27DC82573B5306955C4D35F2D34E2 )"
444
444
}
445
445
}
446
446
447
- New-Item - ItemType Directory - ErrorAction Ignore $BinaryCache \wix- 4.0 .1 | Out-Null
447
+ New-Item - ItemType Directory - ErrorAction Ignore $BinaryCache \wix- 4.0 .4 | Out-Null
448
448
Write-Output " Extracting WiX..."
449
- Expand-Archive - Path $BinaryCache \wix- 4.0 .1 . zip - Destination $BinaryCache \wix- 4.0 .1 - Force
449
+ Expand-Archive - Path $BinaryCache \wix- 4.0 .4 . zip - Destination $BinaryCache \wix- 4.0 .4 - Force
450
450
451
451
if (-not (Test-Path " $BinaryCache \${PinnedToolchain} .exe" )) {
452
452
Write-Output " Swift toolchain not found. Downloading from swift.org..."
@@ -463,7 +463,7 @@ function Ensure-SwiftToolchain($Arch) {
463
463
464
464
New-Item - ItemType Directory - ErrorAction Ignore " $BinaryCache \toolchains" | Out-Null
465
465
Write-Output " Extracting Swift toolchain..."
466
- Invoke-Program " $BinaryCache \wix-4.0.1 \tools\net6.0\any\wix.exe" -- burn extract " $BinaryCache \${PinnedToolchain} .exe" - out " $BinaryCache \toolchains\"
466
+ Invoke-Program " $BinaryCache \wix-4.0.4 \tools\net6.0\any\wix.exe" -- burn extract " $BinaryCache \${PinnedToolchain} .exe" - out " $BinaryCache \toolchains\"
467
467
Invoke-Program - OutNull msiexec.exe / qn / a " $BinaryCache \toolchains\a0" TARGETDIR= " $BinaryCache \toolchains\${PinnedToolchain} "
468
468
Invoke-Program - OutNull msiexec.exe / qn / a " $BinaryCache \toolchains\a1" TARGETDIR= " $BinaryCache \toolchains\${PinnedToolchain} "
469
469
Invoke-Program - OutNull msiexec.exe / qn / a " $BinaryCache \toolchains\a2" TARGETDIR= " $BinaryCache \toolchains\${PinnedToolchain} "
@@ -1684,7 +1684,7 @@ function Stage-BuildArtifacts($Arch) {
1684
1684
} else {
1685
1685
New-Item - Type Directory - Path " $ ( $Arch.BinaryCache ) \installer\$ ( $Arch.VSName ) \" - ErrorAction Ignore | Out-Null
1686
1686
}
1687
- Invoke-Program " $BinaryCache \wix-4.0.1 \tools\net6.0\any\wix.exe" -- burn detach " $ ( $Arch.BinaryCache ) \installer\Release\$ ( $Arch.VSName ) \installer.exe" - engine " $Stage \installer-engine.exe" - intermediateFolder " $ ( $Arch.BinaryCache ) \installer\$ ( $Arch.VSName ) \"
1687
+ Invoke-Program " $BinaryCache \wix-4.0.4 \tools\net6.0\any\wix.exe" -- burn detach " $ ( $Arch.BinaryCache ) \installer\Release\$ ( $Arch.VSName ) \installer.exe" - engine " $Stage \installer-engine.exe" - intermediateFolder " $ ( $Arch.BinaryCache ) \installer\$ ( $Arch.VSName ) \"
1688
1688
}
1689
1689
1690
1690
# -------------------------------------------------------------------
0 commit comments