Skip to content

Commit

Permalink
fix silent install
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonHX committed Apr 14, 2022
1 parent 3f53b06 commit f5af8da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/dev_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function install_build_tools {
Write-Host "Installing..."
cmd /c start /wait $exePath /S
Write-Host "Installed" -ForegroundColor Green
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\LLVM\bin", 'User')
}
try {
dotnet 2>&1>$null
Expand All @@ -116,8 +117,9 @@ function install_build_tools {
$exePath = "$env:temp\rust-init.exe"
Invoke-WebRequest -Uri "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe" -OutFile $exePath
Write-Host "Installing..."
cmd /c start /wait $exePath /S
Write-Host "Installed" -ForegroundColor Green
cmd /c start /wait $exePath -y
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$env:USERPROFILE\.cargo\bin", 'User')
Write-Host "Rust installed" -ForegroundColor Green
}
}

Expand Down

0 comments on commit f5af8da

Please sign in to comment.