Merge branch 'refactor/frontend' of https://github.com/Polyfrost/OneLauncher into refactor/frontend
This commit is contained in:
commit
f998722d71
2 changed files with 2 additions and 3 deletions
|
|
@ -198,8 +198,7 @@ https://learn.microsoft.com/windows/package-manager/winget/
|
||||||
|
|
||||||
Write-Host
|
Write-Host
|
||||||
Write-Host 'Installing Rust tools...' -ForegroundColor Yellow
|
Write-Host 'Installing Rust tools...' -ForegroundColor Yellow
|
||||||
cargo install cargo-watch
|
if (Get-Command cargo-binstall -ea 0) { cargo binstall cargo-watch sqlx-cli } else { cargo install cargo-watch sqlx-cli }
|
||||||
cargo install sqlx-cli
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
Exit-WithError 'Failed to install Rust tools'
|
Exit-WithError 'Failed to install Rust tools'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ esac
|
||||||
if [ "${CI:-}" != "true" ]; then
|
if [ "${CI:-}" != "true" ]; then
|
||||||
echo "installing rust tools..."
|
echo "installing rust tools..."
|
||||||
_tools="cargo-watch sqlx-cli"
|
_tools="cargo-watch sqlx-cli"
|
||||||
echo "$_tools" | xargs cargo install
|
echo "$_tools" | xargs cargo $(has cargo-binstall && echo binstall || echo install)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'your machine has been setup for onelauncher development!'
|
echo 'your machine has been setup for onelauncher development!'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue