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:
1 parent
72a6da0ca3
commit
20303d5ddc
5 files changed
+10
-4
No files matched your search
+7
-4
@@ -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
|
- 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
|
cached under the user's cache directory; offline, a card falls back to initials on the
|
||||||
champion's colour.
|
champion's colour.
|
||||||
- The installer has not been run on a clean VM. It is unsigned, and both exes import
|
- The installer has not been run on a clean VM, and it is unsigned: SmartScreen will warn on
|
||||||
`VCRUNTIME140.dll`, which a fresh Windows does not have: a machine without the VC++ 2015-2022
|
every download until it is signed. The VC++ runtime travels with it (`vendor/vcruntime`),
|
||||||
redistributable will refuse to start the app. Ship the redist with the installer, or build
|
because Windows ships the UCRT but not `VCRUNTIME140.dll`, `VCRUNTIME140_1.dll` or
|
||||||
with a static CRT, before handing it to players.
|
`MSVCP140.dll`, and the app, the daemon and every OBS plugin import them.
|
||||||
|
|
||||||
## The vendored crates
|
## 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
|
`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
|
`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
|
`[patch.crates-io]` does not apply to the app that depends on it, so `Cargo.toml` repeats the
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ resources = [
|
|||||||
{ src = "../record-daemon/target/release/rtmp-services", target = "rtmp-services" },
|
{ src = "../record-daemon/target/release/rtmp-services", target = "rtmp-services" },
|
||||||
{ src = "../record-daemon/target/release/iconengines", target = "iconengines" },
|
{ src = "../record-daemon/target/release/iconengines", target = "iconengines" },
|
||||||
{ src = "../record-daemon/target/release/styles", target = "styles" },
|
{ 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]
|
[nsis]
|
||||||
|
|||||||
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in new issue
Block a user