From a7163efaf19ac10af022fb8e0f478f6545789d36 Mon Sep 17 00:00:00 2001 From: locpham Date: Sun, 9 Aug 2026 04:17:09 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20build=5Fwindows.ps1=20guard=20resources/?= =?UTF-8?q?daw=5Fengine=20(exe=20+=20=5Finternal)=20truoc=20tauri=20build?= =?UTF-8?q?=20=E2=80=94=20glob=20fail=20neu=20thieu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_windows.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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