init commit
This commit is contained in:
18
ctrl/app.sh
Executable file
18
ctrl/app.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user