Skip to content

Commit c2e6ceb

Browse files
stytimclaude
andcommitted
Bundle vcpkg transitive DLLs in Windows installer
The vcpkg-built realsense2.dll links against vcpkg lz4, so the app fails to start without lz4.dll alongside it. Copy all DLLs from the vcpkg bin dir into the NSIS payload to pick up lz4 and any future transitive deps. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d03debd commit c2e6ceb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,11 @@ jobs:
286286
if (-not (Test-Path $exe)) { $exe = "build\ir-tracking-app.exe" }
287287
Copy-Item $exe -Destination $stage
288288
289-
Copy-Item "C:\Program Files (x86)\Intel RealSense SDK 2.0\bin\x64\realsense2.dll" -Destination $stage
289+
# Pull realsense2.dll and its vcpkg transitive deps (lz4.dll, etc.)
290+
# straight from vcpkg's bin/ — the Intel-SDK restage dir only has
291+
# realsense2.dll itself, which leaves the app missing lz4.dll at runtime.
292+
$vcpkgBin = "C:\vcpkg\installed\x64-windows\bin"
293+
Get-ChildItem -Path $vcpkgBin -Filter "*.dll" | Copy-Item -Destination $stage
290294
$opencvBin = Join-Path $env:OpenCV_DIR "x64\vc16\bin"
291295
Get-ChildItem -Path $opencvBin -Filter "opencv_world*.dll" `
292296
| Where-Object { $_.Name -notmatch "d\.dll$" } `

0 commit comments

Comments
 (0)