这个目录用于把 Star-Office-UI 包成桌面应用(透明窗口),并在启动时自动拉起后端进程。
先在仓库根目录准备 Python 环境:
cd /Users/wangzhaohan/Documents/GitHub/Star-Office-UI
uv venv .venv
uv pip install -r backend/requirements.txt --python .venv/bin/python
再启动 Tauri:
cd /Users/wangzhaohan/Documents/GitHub/Star-Office-UI/desktop-pet
npm install
npm run dev
../.venv/bin/python backend/app.pypython3 backend/app.pypython backend/app.py窗口默认会跳转到:
http://127.0.0.1:19000/?desktop=1STAR_PROJECT_ROOT:项目根目录(默认会自动探测)STAR_BACKEND_PYTHON:自定义 Python 可执行路径STAR_BACKEND_URL:自定义桌面窗口打开的 URL