FIX: tạo 2 file giúp build trên Windows

This commit is contained in:
2026-08-08 09:16:27 +07:00
parent fc24b08505
commit 6edf526d27
3 changed files with 95 additions and 0 deletions
+6
View File
@@ -2972,3 +2972,9 @@
- **FIX:** (1) requirements.txt — BỎ `pedalboard` (chú thích lý do); (2) CI — `pip install -r requirements.txt` + `pip install --no-deps pedalboard>=0.8.0` (chỉ pedalboard core — load_plugin VST3 KHÔNG cần supertonic).
- **Các file ảnh hưởng:** requirements.txt, .github/workflows/windows-build.yml, wiki.md.
- **Ghi chú/Test:** chạy lại workflow — hết conflict numpy; pedalboard (VST3 render) vẫn hoạt động qua --no-deps.
### [2026-08-08 08:45] Task: FIX build Windows (3) — cargo not found (thiếu Rust)
- **Lỗi:** `npx tauri build — failed to run 'cargo metadata' ... program not found` — máy build thiếu Rust toolchain.
- **FIX:** (1) `build_windows.bat` — script 1 lệnh: kiểm tra Python/Node → TỰ CÀI Rust (rustup -y) nếu thiếu → pip deps (+ pedalboard --no-deps) → Babel → pyinstaller engine.spec → copy sidecar → npx tauri build; (2) `BUILD_WINDOWS.md` — yêu cầu (Python, Node, Rust MSVC, VS Build Tools C++, WebView2) + build thủ công + checklist kiểm thử theo spec IV.
- **Các file ảnh hưởng:** build_windows.bat, BUILD_WINDOWS.md, wiki.md.
- **Ghi chú/Test:** trên máy Windows: chạy `build_windows.bat` (cmd) → sinh setup.exe; CI (windows-latest — dtolnay/rust-toolchain) không bị lỗi này.