# GEUTEBRUCK APP - REBUILD AND RUN SCRIPT # Double-click to run, or right-click > Run with PowerShell Write-Host "========================================" -ForegroundColor Cyan Write-Host " GEUTEBRUCK APP - REBUILD AND RUN" -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Cyan Write-Host "" # Step 1: Kill all Flutter processes Write-Host "[1/4] Killing all Flutter/Dart processes..." -ForegroundColor Yellow Get-Process -Name "dart", "flutter" -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue Start-Sleep -Seconds 2 # Step 2: Clean Write-Host "[2/4] Cleaning build artifacts..." -ForegroundColor Yellow Set-Location "C:\DEV\COPILOT\geutebruck_app" & "C:\flutter\bin\flutter.bat" clean # Step 3: Get dependencies Write-Host "[3/4] Getting dependencies..." -ForegroundColor Yellow & "C:\flutter\bin\flutter.bat" pub get # Step 4: Run on Chrome Write-Host "[4/4] Running app on Chrome..." -ForegroundColor Yellow Write-Host "" Write-Host "========================================" -ForegroundColor Green Write-Host " APP WILL OPEN IN CHROME SHORTLY" -ForegroundColor Green Write-Host " Look for 'Add Output Action' button!" -ForegroundColor Green Write-Host "========================================" -ForegroundColor Green Write-Host "" # Open Chrome in new window Start-Process "chrome.exe" -ArgumentList "--new-window" # Run Flutter & "C:\flutter\bin\flutter.bat" run -d chrome Write-Host "" Write-Host "Press any key to exit..." -ForegroundColor Gray $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")