Newer
Older
MiniTias / scripts / setup.ps1
# MiniTIAS Development Environment Setup Script
# Usage: .\scripts\setup.ps1

Write-Host "=== MiniTIAS Setup ===" -ForegroundColor Cyan

# Check Scoop
if (-not (Get-Command scoop -ErrorAction SilentlyContinue)) {
    Write-Host "[ERROR] Scoop is not installed." -ForegroundColor Red
    Write-Host "Run the following commands:" -ForegroundColor Yellow
    Write-Host "  Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser"
    Write-Host "  Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression"
    exit 1
}

# Add extras bucket
Write-Host "[1/4] Adding Scoop extras bucket..." -ForegroundColor Green
scoop bucket add extras 2>$null

# Flutter SDK
Write-Host "[2/4] Installing Flutter SDK..." -ForegroundColor Green
scoop install flutter

# Android Studio
Write-Host "[3/4] Installing Android Studio..." -ForegroundColor Green
scoop install extras/android-studio

# GitHub CLI
Write-Host "[4/4] Installing GitHub CLI..." -ForegroundColor Green
scoop install gh

Write-Host ""
Write-Host "=== Setup Complete ===" -ForegroundColor Cyan
Write-Host ""
Write-Host "Next steps:" -ForegroundColor Yellow
Write-Host "  1. Launch Android Studio and complete the setup wizard"
Write-Host "  2. Run: flutter doctor --android-licenses"
Write-Host "  3. Run: flutter doctor"
Write-Host "  4. Run: gh auth login"
Write-Host ""
Write-Host "See docs/02_ENV/ENV_02 for details."