mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Use --self-install
in install-from-binstall-release.ps1
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
1f211d41ab
commit
5107b5187e
1 changed files with 1 additions and 1 deletions
|
@ -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" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue