Skip to content

Commit e0a3f4e

Browse files
committed
ci: bundle MSVC runtime DLLs into the Windows artifact
The vcpkg-built openmpt.dll and its audio deps link the dynamic MSVC runtime, so they require msvcp140/vcruntime140/vcruntime140_1 at runtime even though rtrax.exe itself is static-CRT. Copy those three redistributable DLLs from System32 into the bundle so the target machine needs no Visual C++ redistributable installed.
1 parent 6f271fc commit e0a3f4e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ jobs:
107107
# libopenmpt.dll plus its runtime dependencies (ogg/vorbis/mpg123/
108108
# zlib/...) so the exe actually runs, not just links.
109109
Copy-Item "$env:VCPKG_INSTALLATION_ROOT/installed/x64-windows/bin/*.dll" $stage/
110+
# The vcpkg DLLs link the *dynamic* MSVC runtime (rtrax.exe itself is
111+
# static-CRT). Bundle the redistributable runtime DLLs so the target
112+
# machine needs no Visual C++ redistributable installed at all.
113+
foreach ($dll in 'msvcp140.dll', 'vcruntime140.dll', 'vcruntime140_1.dll') {
114+
Copy-Item "$env:SystemRoot/System32/$dll" $stage/
115+
}
110116
Copy-Item README.md, LICENSE $stage/
111117
112118
- name: Upload Windows bundle

0 commit comments

Comments
 (0)