From 5107b5187eaf12c6aea7d8841788a3e085814af6 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 8 Nov 2024 00:34:14 +1100 Subject: [PATCH] Use `--self-install` in install-from-binstall-release.ps1 Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- install-from-binstall-release.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-from-binstall-release.ps1 b/install-from-binstall-release.ps1 index 0e0a39c2..358e767e 100644 --- a/install-from-binstall-release.ps1 +++ b/install-from-binstall-release.ps1 @@ -19,7 +19,7 @@ $url = "$base_url$arch-pc-windows-msvc.zip" Invoke-WebRequest $url -OutFile $tmpdir\cargo-binstall.zip Expand-Archive -Force $tmpdir\cargo-binstall.zip $tmpdir\cargo-binstall Write-Host "" -Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe -y --force cargo-binstall" +Invoke-Expression "$tmpdir\cargo-binstall\cargo-binstall.exe --self-install" Remove-Item -Force $tmpdir\cargo-binstall.zip Remove-Item -Recurse -Force $tmpdir\cargo-binstall $cargo_home = if ($Env:CARGO_HOME -ne $null) { $Env:CARGO_HOME } else { "$HOME\.cargo" }