fix(release): install the correct Windows Spectre component (#9859)

This commit is contained in:
maria authored and GitHub committed 2026-09-05 02:38:08 +00:00
1 parent d28077e585
commit 1665d81bb5
1 file changed
+1 -1
+1 -1
View File
@@ -521,7 +521,7 @@ jobs:
$setupExe = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\setup.exe"
$proc = Start-Process -FilePath $setupExe `
-ArgumentList "modify", "--installPath", "`"$installPath`"", "--add", `
"Microsoft.VisualStudio.Component.VC.Tools.x86.x64.Spectre", "--quiet", "--norestart" `
"Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre", "--quiet", "--norestart" `
-Wait -PassThru -NoNewWindow
if ($null -eq $proc -or $proc.ExitCode -ne 0) {
$code = if ($null -ne $proc) { $proc.ExitCode } else { 1 }