version := `python3 -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])"`

build:
    uv run python setup.py py2app

archive: build
    cd dist && zip -r "LowHum-{{version}}-macOS-arm64.zip" LowHum.app

clean:
    rm -rf .venv build dist .ruff_cache .pytest_cache .mypy_cache
    find . -type d -name "__pycache__" -prune -exec rm -rf {} +

sha256:
    shasum -a 256 dist/LowHum-{{version}}-macOS-arm64.zip
