26 lines
1.0 KiB
Bash
Executable File
26 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Installs developer tools if missing. Safe to re-run.
|
|
set -euo pipefail
|
|
|
|
[[ "$(uname -s)" == "Darwin" && "$(uname -m)" == "arm64" ]] || { echo "Vorleser requires an Apple Silicon Mac." >&2; exit 1; }
|
|
xcode-select -p >/dev/null 2>&1 || { echo "Install Xcode 16+ and run: xcode-select --install" >&2; exit 1; }
|
|
|
|
if ! command -v brew >/dev/null; then
|
|
echo "Homebrew not found — install from https://brew.sh or install xcodegen/swiftformat/swiftlint manually." >&2
|
|
exit 1
|
|
fi
|
|
|
|
for tool in xcodegen swiftformat swiftlint xcbeautify ripgrep; do
|
|
bin=$tool; [[ $tool == ripgrep ]] && bin=rg
|
|
if command -v "$bin" >/dev/null; then echo "✓ $tool"; else echo "→ installing $tool"; brew install "$tool"; fi
|
|
done
|
|
|
|
if command -v ollama >/dev/null; then
|
|
echo "✓ ollama $(ollama --version 2>/dev/null | awk '{print $NF}')"
|
|
else
|
|
echo "! ollama not found — install from https://ollama.com/download (≥ 0.40.9 for speech)"
|
|
fi
|
|
|
|
swift --version | head -1
|
|
echo "Bootstrap complete. Next: make generate && make verify"
|