From f5af8daa1afeffab93b81d09097dd8729aa7810d Mon Sep 17 00:00:00 2001 From: LemonHX Date: Thu, 14 Apr 2022 17:29:41 +0800 Subject: [PATCH] fix silent install --- scripts/dev_setup.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/dev_setup.ps1 b/scripts/dev_setup.ps1 index addba71292..5f214ecb5d 100644 --- a/scripts/dev_setup.ps1 +++ b/scripts/dev_setup.ps1 @@ -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 @@ -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 } }