cmux/scripts/rebuild.sh
2026-01-26 03:05:03 -08:00

18 lines
292 B
Bash
Executable file

#!/bin/bash
# Rebuild and restart cmux app
set -e
cd "$(dirname "$0")/.."
# Kill existing app if running
pkill -9 -f "cmux" 2>/dev/null || true
# Build
swift build
# Copy to app bundle
cp .build/debug/cmux .build/debug/cmux.app/Contents/MacOS/
# Open the app
open .build/debug/cmux.app