diff --git a/build_windows.ps1 b/build_windows.ps1 index b43ba0b..46f7349 100644 --- a/build_windows.ps1 +++ b/build_windows.ps1 @@ -70,6 +70,16 @@ if (-not (Test-Path src-tauri\vc_redist.x64.exe)) { } Write-Host "== [6/6] Tauri build (NSIS .exe + MSI) ==" +# Guard: resources/daw_engine PHẢI có exe + _internal trước khi tauri build — +# glob trong tauri.conf.json fail ngay ("path not found") neu thieu. +if (-not (Test-Path "src-tauri\resources\daw_engine\daw_engine.exe")) { + Write-Host "ERROR: src-tauri\resources\daw_engine\daw_engine.exe khong co — buoc [4/6] that bai?" -ForegroundColor Red + exit 1 +} +if (-not (Test-Path "src-tauri\resources\daw_engine\_internal")) { + Write-Host "ERROR: thieu src-tauri\resources\daw_engine\_internal (onedir khong day du)" -ForegroundColor Red + exit 1 +} npm install -D @tauri-apps/cli npx tauri build