prole/installer/scripts/install_prole_homebrew.sh
chrisfu 120c9c2567 feat(installer): unified welcome flow, reliable footer gating; externalize install scripts; add Ollama; centralize canvas helpers
- Startup/UI: open main window with background; run dependency check on-canvas; hide footer during scan; reveal Next after debounce; add 600ms refresh and 9s failsafe; fixed background image replacement without clearing content.

- Canvas helpers: route all canvas calls via installer/screen.py; consistent status drawing.

- Installer script externalization: per-dependency templates + validator; compose install_dependencies.sh.

- Dependencies: add Ollama and template; install order: brew → ollama → k3d → kubectl → helm → krew → cmctl → plugins.

- Cleanup: removed deprecated splash and unused code paths.
2025-12-04 14:01:28 -08:00

18 lines
469 B
Bash

#!/bin/bash
# Prole Installer: Homebrew
# Ensures Homebrew is present and up to date on macOS
set -euo pipefail
echo "[prole] Checking Homebrew..."
if ! command -v brew >/dev/null 2>&1; then
echo "[prole] Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "[prole] Homebrew present; updating taps and packages..."
brew update
brew upgrade || true
fi
echo "[prole] Homebrew OK"