Skip to content

Commit c6e0f8f

Browse files
authored
Merge pull request #71519 from tristanlabelle/tristan/wix4.0.4-5.10
Update to WiX 4.0.4 to pick up a security fix
2 parents 0d4ea7e + 3c8b9a7 commit c6e0f8f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

utils/build.ps1

+9-9
Original file line numberDiff line numberDiff line change
@@ -432,21 +432,21 @@ function Ensure-WindowsSDK {
432432
}
433433

434434
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)) {
436436
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
438438
}
439439

440440
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)"
444444
}
445445
}
446446

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
448448
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
450450

451451
if (-not (Test-Path "$BinaryCache\${PinnedToolchain}.exe")) {
452452
Write-Output "Swift toolchain not found. Downloading from swift.org..."
@@ -463,7 +463,7 @@ function Ensure-SwiftToolchain($Arch) {
463463

464464
New-Item -ItemType Directory -ErrorAction Ignore "$BinaryCache\toolchains" | Out-Null
465465
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\"
467467
Invoke-Program -OutNull msiexec.exe /qn /a "$BinaryCache\toolchains\a0" TARGETDIR="$BinaryCache\toolchains\${PinnedToolchain}"
468468
Invoke-Program -OutNull msiexec.exe /qn /a "$BinaryCache\toolchains\a1" TARGETDIR="$BinaryCache\toolchains\${PinnedToolchain}"
469469
Invoke-Program -OutNull msiexec.exe /qn /a "$BinaryCache\toolchains\a2" TARGETDIR="$BinaryCache\toolchains\${PinnedToolchain}"
@@ -1684,7 +1684,7 @@ function Stage-BuildArtifacts($Arch) {
16841684
} else {
16851685
New-Item -Type Directory -Path "$($Arch.BinaryCache)\installer\$($Arch.VSName)\" -ErrorAction Ignore | Out-Null
16861686
}
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)\"
16881688
}
16891689

16901690
#-------------------------------------------------------------------

0 commit comments

Comments
 (0)