FIX: sửa 2 file giúp build trên Windows

This commit is contained in:
2026-08-08 09:18:23 +07:00
parent 6edf526d27
commit 3f35b84535
2 changed files with 43 additions and 19 deletions
+6
View File
@@ -2978,3 +2978,9 @@
- **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.
### [2026-08-08 08:50] Task: FIX build_windows.bat — lỗi "was unexpected at this time"
- **Lỗi:** `.\build_windows.bat``... was unexpected at this time.` — batch parse: dấu `(` `)` trong chuỗi echo (vd `(tick "Add to PATH")`) phá block `(...)`; `|| ( ... )` kết hợp cũng rủi ro.
- **FIX:** viết lại batch an toàn: bỏ mọi ngoặc trong echo, dùng `if errorlevel 1 ( ... )` thuần, echo KHÔNG DẤU (tránh codepage), quote `"pedalboard>=0.8.0"` (dấu `>` = redirect trong cmd).
- **Các file ảnh hưởng:** build_windows.bat, wiki.md.
- **Ghi chú/Test:** chạy lại `build_windows.bat` trên Windows — hết lỗi parse; nếu thiếu Rust → tự cài rustup rồi tiếp tục.