app: ship the VC++ runtime with the installer

The app, the daemon, obs.dll and every OBS plugin import VCRUNTIME140.dll,
and the plugins reach for MSVCP140.dll and VCRUNTIME140_1.dll as well.
Windows carries the UCRT but none of those, so an installer without them
starts nothing on a machine that never ran Visual Studio; this one only
worked because the redistributable happened to be installed here.

The three DLLs live in vendor/vcruntime (they are on the redistributable
list) and packager.toml copies them beside the exes.
This commit is contained in:
vhaudiquet committed 2026-11-19 22:19:38 +01:00
1 parent 72a6da0ca3
commit 20303d5ddc
5 files changed
+10 -4

No files matched your search

+7 -4
View File
@@ -111,13 +111,16 @@ reading (`history::tests`), highlight clipping (`highlight::tests`) and formatti
- Item images are not drawn. Champion portraits download from Data Dragon on first sight and are
cached under the user's cache directory; offline, a card falls back to initials on the
champion's colour.
- The installer has not been run on a clean VM. It is unsigned, and both exes import
`VCRUNTIME140.dll`, which a fresh Windows does not have: a machine without the VC++ 2015-2022
redistributable will refuse to start the app. Ship the redist with the installer, or build
with a static CRT, before handing it to players.
- The installer has not been run on a clean VM, and it is unsigned: SmartScreen will warn on
every download until it is signed. The VC++ runtime travels with it (`vendor/vcruntime`),
because Windows ships the UCRT but not `VCRUNTIME140.dll`, `VCRUNTIME140_1.dll` or
`MSVCP140.dll`, and the app, the daemon and every OBS plugin import them.
## The vendored crates
`vendor/` also holds `vcruntime/`: the three redistributable DLLs the installer puts beside
the exes, copied from a machine with Visual Studio's runtime installed.
`vendor/` holds three crates copied from rune's own `vendor/`: `wgpu-hal`, `winit` and
`parley_engine`. Rune builds against patched copies of these, and a dependency's
`[patch.crates-io]` does not apply to the app that depends on it, so `Cargo.toml` repeats the