V45.38: bundle VC++ runtime app-local (MSVCP140/VCRUNTIME140) vao installer+portable - bridge C++ link /MD can runtime canh exe, khong phu thuoc vc_redist he thong (fix 0x7E ERROR_MOD_NOT_FOUND tren may khong cai redist)

This commit is contained in:
2026-09-01 16:19:33 +07:00
parent c1b73db971
commit 1e0314249d
7 changed files with 20 additions and 1 deletions
+7
View File
@@ -69,6 +69,13 @@ if ($LASTEXITCODE -ge 8) { Write-Host "ERROR: robocopy install that bai (exit $L
if (-not (Test-Path "install\daw_engine\_internal")) { Write-Host "ERROR: install\daw_engine\_internal thieu - onedir layout sai" -ForegroundColor Red; exit 1 }
# 3 binary (bridge/lib/app) da commit san trong install/ - khong ghi de,
# neu user da build lai bridge/app thi tu copy vao day.
# VC++ runtime app-local: bridge C++ link /MD can MSVCP140/VCRUNTIME140 canh
# exe (khong phu thuoc vc_redist he thong). Dong bo tu src-tauri/binaries.
foreach ($dll in @("MSVCP140.dll", "MSVCP140_2.dll", "VCRUNTIME140.dll", "VCRUNTIME140_1.dll")) {
$src = "src-tauri\binaries\$dll"
if (Test-Path $src) { Copy-Item $src "install\$dll" -Force }
else { Write-Host "WARN: thieu $dll trong src-tauri\binaries - chay build_windows.ps1 -Bridge truoc" -ForegroundColor Yellow }
}
Write-Host ""
Write-Host "== DONE =="