File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -198,8 +198,7 @@ https://learn.microsoft.com/windows/package-manager/winget/
198198
199199 Write-Host
200200 Write-Host ' Installing Rust tools...' - ForegroundColor Yellow
201- cargo install cargo- watch
202- cargo install sqlx- cli
201+ if (Get-Command cargo- binstall - ea 0 ) { cargo binstall cargo- watch sqlx- cli } else { cargo install cargo- watch sqlx- cli }
203202 if ($LASTEXITCODE -ne 0 ) {
204203 Exit-WithError ' Failed to install Rust tools'
205204 }
Original file line number Diff line number Diff line change 184184if [ " ${CI:- } " != " true" ]; then
185185 echo " installing rust tools..."
186186 _tools=" cargo-watch sqlx-cli"
187- echo " $_tools " | xargs cargo install
187+ echo " $_tools " | xargs cargo $( has cargo-binstall && echo binstall || echo install)
188188fi
189189
190190echo ' your machine has been setup for onelauncher development!'
You can’t perform that action at this time.
0 commit comments