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:
@@ -125,6 +125,14 @@ if ($doBridge) {
|
||||
Copy-Item "native_bridge\build\Release\$dll" "src-tauri\binaries\$dll" -Force
|
||||
}
|
||||
}
|
||||
# VC++ runtime app-local (MSVCP140/VCRUNTIME140) — bridge C++ link /MD nen
|
||||
# can cac dll nay CANH exe, khong phu thuoc vc_redist he thong. Lay tu
|
||||
# System32 (ban redist da cai) de bundle vao installer/portable.
|
||||
foreach ($dll in @("MSVCP140.dll", "MSVCP140_2.dll", "VCRUNTIME140.dll", "VCRUNTIME140_1.dll")) {
|
||||
$sys = Join-Path $env:WINDIR "System32\$dll"
|
||||
if (Test-Path $sys) { Copy-Item $sys "src-tauri\binaries\$dll" -Force }
|
||||
else { Write-Host "WARN: thieu $dll trong System32 (VC++ redist chua cai?)" -ForegroundColor Yellow }
|
||||
}
|
||||
Write-Host "Bridge OK -> src-tauri/binaries"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user