FIX: đã sửa build_windows.bat

This commit is contained in:
2026-08-08 09:21:55 +07:00
parent 3f35b84535
commit bc759dd99a
2 changed files with 23 additions and 2 deletions
+6
View File
@@ -2984,3 +2984,9 @@
- **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.
### [2026-08-08 08:55] Task: FIX build_windows.bat — dừng im lặng ở [4/6] (npm install nuốt lỗi)
- **Lỗi:** script dừng ở [4/6] Precompile JS không message — `npm install >nul 2>nul` nuốt lỗi → babel thiếu → `exit /b 1` im lặng.
- **FIX (build_windows.bat):** (1) [4/6] — bỏ `>nul 2>nul` (hiện lỗi), check `if errorlevel 1` + check tồn tại `node_modules\@babel\cli\bin\babel.js` với message rõ; (2) [6/6] — tương tự cho `npm install -D @tauri-apps/cli` (bỏ nuốt lỗi + check).
- **Các file ảnh hưởng:** build_windows.bat, wiki.md.
- **Ghi chú/Test:** chạy lại `.\build_windows.bat` — nếu npm install fail sẽ thấy lỗi thật (network/registry) thay vì dừng im.