Commit ecde37b
fix(release): enforce minimum VC++ runtime version for onnxruntime/sherpa-onnx
Adds a file-version check for vcruntime140.dll in the release native-dependency
verifier script. VCRuntime.CefSharp.140 1.0.5 ships 14.29 (VS 2019 16.11), but
OnnxRuntime 1.26 and sherpa-onnx 1.13 are compiled with VS 2022 and need 14.40+.
Bundling 14.29 causes sherpa-onnx-c-api to fail DLL initialisation (0x8007045A),
crash-looping the tray on startup (issue #703).
Changes:
- Add $Script:MinVCRuntimeVersion = 14.40.0.0 constant with explanatory comment
- In the app-local VC runtime check loop, verify vcruntime140.dll file version is
>= 14.40.0.0 on Windows and emit a clear error pointing to issue #703 when not
- Update script description to document the multi-library VC runtime dependency
- Add ReleaseWorkflow_VCRuntimeMinimumVersionIsEnforced test to pin the check
The version check runs only on Windows (FileVersionInfo reads Windows PE metadata).
CI will catch the mismatch on the next x64/arm64 build leg.
Closes #703
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4be0057 commit ecde37b
2 files changed
Lines changed: 45 additions & 4 deletions
File tree
- scripts
- tests/OpenClaw.Tray.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
10 | 17 | | |
11 | 18 | | |
12 | 19 | | |
| |||
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
| |||
108 | 120 | | |
109 | 121 | | |
110 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
111 | 138 | | |
112 | 139 | | |
113 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
112 | 126 | | |
113 | 127 | | |
114 | 128 | | |
| |||
0 commit comments