diff --git a/app/README.md b/app/README.md index 439edf8..f237929 100644 --- a/app/README.md +++ b/app/README.md @@ -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 diff --git a/app/packager.toml b/app/packager.toml index 4387a6c..3c7c267 100644 --- a/app/packager.toml +++ b/app/packager.toml @@ -32,6 +32,9 @@ resources = [ { src = "../record-daemon/target/release/rtmp-services", target = "rtmp-services" }, { src = "../record-daemon/target/release/iconengines", target = "iconengines" }, { src = "../record-daemon/target/release/styles", target = "styles" }, + # The C++ runtime the exes and every OBS plugin import. Windows ships the UCRT but not these, + # so a machine without the VC++ redistributable would not start the app. + { src = "vendor/vcruntime/*.dll", target = "." }, ] [nsis] diff --git a/app/vendor/vcruntime/msvcp140.dll b/app/vendor/vcruntime/msvcp140.dll new file mode 100644 index 0000000..bea9c37 Binary files /dev/null and b/app/vendor/vcruntime/msvcp140.dll differ diff --git a/app/vendor/vcruntime/vcruntime140.dll b/app/vendor/vcruntime/vcruntime140.dll new file mode 100644 index 0000000..5786e93 Binary files /dev/null and b/app/vendor/vcruntime/vcruntime140.dll differ diff --git a/app/vendor/vcruntime/vcruntime140_1.dll b/app/vendor/vcruntime/vcruntime140_1.dll new file mode 100644 index 0000000..0b660f9 Binary files /dev/null and b/app/vendor/vcruntime/vcruntime140_1.dll differ