#!/bin/bash # Start the CHT desktop app on this machine # Usage: ./app.sh set -euo pipefail PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)" cd "$PROJECT_DIR" # Setup venv and install deps if needed if [ ! -d .venv ]; then uv venv --system-site-packages uv pip install -e ".[dev]" elif [ pyproject.toml -nt .venv/.installed ]; then uv pip install -e ".[dev]" fi touch .venv/.installed exec .venv/bin/python -m cht.app "$@"