6cdfbb7e8b
## Motivation Some users (primarily in China) are unable to access HuggingFace.co. HF supports the HF_ENDPOINT env variable, and we also support it, but there is no way to easily do that from the app currently. ## Test Plan ### Manual Testing hf-mirror works empty field works google.com endpoint fails
45 lines
992 B
Makefile
45 lines
992 B
Makefile
export NIX_CONFIG := "extra-experimental-features = nix-command flakes"
|
|
|
|
fmt:
|
|
treefmt || nix fmt
|
|
|
|
lint:
|
|
uv run ruff check --fix
|
|
|
|
test:
|
|
uv run pytest src
|
|
|
|
check:
|
|
uv run basedpyright --project pyproject.toml
|
|
|
|
sync:
|
|
uv sync --all-packages
|
|
|
|
sync-clean:
|
|
uv sync --all-packages --force-reinstall --no-cache
|
|
|
|
rust-rebuild:
|
|
cargo run --bin stub_gen
|
|
uv sync --reinstall-package exo_pyo3_bindings
|
|
|
|
build-dashboard:
|
|
#!/usr/bin/env bash
|
|
cd dashboard
|
|
npm install
|
|
npm run build
|
|
|
|
package:
|
|
uv run pyinstaller packaging/pyinstaller/exo.spec
|
|
|
|
build-app: package
|
|
xcodebuild build -project app/EXO/EXO.xcodeproj -scheme EXO -configuration Debug -derivedDataPath app/EXO/build
|
|
@echo "\nBuild complete. Run with:\n open {{justfile_directory()}}/app/EXO/build/Build/Products/Debug/EXO.app"
|
|
|
|
clean:
|
|
rm -rf **/__pycache__
|
|
rm -rf target/
|
|
rm -rf .venv
|
|
rm -rf dashboard/node_modules
|
|
rm -rf dashboard/.svelte-kit
|
|
rm -rf dashboard/build
|