fix(release): v1.19.6 release.yml 先构建前端再 pip install(修复EXE丢依赖)

v1.19.5 EXE 只有 11MB,双击报 ModuleNotFoundError: No module named 'pandas'。
根因:release.yml 先 pip install -e '.[web,packaging]' 再 Build frontend,
但 force-include 要求 web-ui/dist 在 pip install 时就存在——install 阶段
dist 不存在导致 editable install 静默降级,PyInstaller 收集不到第三方包。

修复:调换步骤顺序,Build frontend 在 Install Python deps 之前。
ci.yml 上一 commit 已同样修复。
This commit is contained in:
Justin Gu
2026-07-07 22:23:30 +08:00
parent e8b088bca1
commit c2c3e7ffb4
3 changed files with 17 additions and 8 deletions
+8 -7
View File
@@ -31,19 +31,20 @@ jobs:
cache: "npm"
cache-dependency-path: web-ui/package-lock.json
# 安装后端(含 [web,packaging] extrasfastapi/uvicorn + pystray/Pillow
- name: Install Python deps
run: |
pip install -e ".[web,packaging]"
pip install pyinstaller
# 构建前端 → web-ui/dist/spec 把它打到 EXE 内的 web_dist/
# 构建前端 → web-ui/dist/。必须在 pip install 前:pyproject.toml 的
# force-include 要求 web-ui/dist 存在,否则 pip install -e . 报错。
- name: Build frontend
run: |
npm ci
npm run build
working-directory: web-ui
# 安装后端(含 [web,packaging] extrasfastapi/uvicorn + pystray/Pillow
- name: Install Python deps
run: |
pip install -e ".[web,packaging]"
pip install pyinstaller
- name: Build EXE
run: pyinstaller easy_tdx.spec --noconfirm