feat: add antigravity cli and termato as installed packages
This commit is contained in:
@@ -33,6 +33,7 @@ foreach ($pkg in $packages) {
|
||||
|
||||
# Check if already installed
|
||||
$check = winget list --id $id --exact --accept-source-agreements 2>$null | Select-String $id
|
||||
|
||||
if ($check) {
|
||||
Write-Host " already installed" -ForegroundColor DarkGray
|
||||
$skipped++
|
||||
@@ -42,6 +43,7 @@ foreach ($pkg in $packages) {
|
||||
# Install
|
||||
Write-Host " installing..." -NoNewline
|
||||
$result = winget install --id $id --exact --silent --accept-package-agreements --accept-source-agreements 2>&1
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host " done" -ForegroundColor Green
|
||||
$installed++
|
||||
@@ -59,12 +61,14 @@ Write-Host "==> Package install complete: $installed installed, $skipped already
|
||||
# =============================================================================
|
||||
|
||||
$LocalBin = Join-Path $env:USERPROFILE ".local\bin"
|
||||
|
||||
if (-not (Test-Path $LocalBin)) {
|
||||
New-Item -ItemType Directory -Force $LocalBin | Out-Null
|
||||
}
|
||||
|
||||
# Ensure ~/.local/bin is in the user PATH
|
||||
$userPath = [System.Environment]::GetEnvironmentVariable("PATH", "User")
|
||||
|
||||
if ($userPath -notlike "*$LocalBin*") {
|
||||
[System.Environment]::SetEnvironmentVariable("PATH", "$userPath;$LocalBin", "User")
|
||||
$env:PATH = "$env:PATH;$LocalBin"
|
||||
@@ -110,3 +114,29 @@ Write-Host "==> Installing manual (non-winget) packages..." -ForegroundColor Cya
|
||||
|
||||
# watchexec — https://github.com/watchexec/watchexec
|
||||
Install-GitHubBinary -Name "watchexec" -Repo "watchexec/watchexec" -AssetPattern "*x86_64-pc-windows-msvc.zip"
|
||||
|
||||
# Antigravity CLI — https://antigravity.google/cli/
|
||||
if (-not (Get-Command antigravity -ErrorAction SilentlyContinue)) {
|
||||
Write-Host " Installing Antigravity CLI..." -NoNewline
|
||||
try {
|
||||
irm https://antigravity.google/cli/install.ps1 | iex
|
||||
Write-Host " done" -ForegroundColor Green
|
||||
} catch {
|
||||
Write-Host " FAILED: $_" -ForegroundColor Red
|
||||
}
|
||||
} else {
|
||||
Write-Host " Antigravity CLI already installed" -ForegroundColor DarkGray
|
||||
}
|
||||
|
||||
# termato — https://github.com/StevanFreeborn/termato
|
||||
if (-not (Get-Command termato -ErrorAction SilentlyContinue)) {
|
||||
Write-Host " Installing termato..." -NoNewline
|
||||
try {
|
||||
irm https://github.com/StevanFreeborn/termato/releases/latest/download/termato-installer.ps1 | iex
|
||||
Write-Host " done" -ForegroundColor Green
|
||||
} catch {
|
||||
Write-Host " FAILED: $_" -ForegroundColor Red
|
||||
}
|
||||
} else {
|
||||
Write-Host " termato already installed" -ForegroundColor DarkGray
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user