Commit 4b9c103
fix(windows-release): bundle sherpa-rs runtime DLLs in zip + installer
The Windows zip and NSIS installer previously shipped only clx.exe +
clx-screen-reader.exe. clx.exe depends on sherpa-onnx-c-api.dll,
onnxruntime.dll, onnxruntime_providers_shared.dll and cargs.dll, all of
which sherpa-rs's build.rs drops into rs/target/release/. Without them,
clx.exe fails at launch with STATUS_DLL_NOT_FOUND (0xC0000135) and no
stdout/stderr — leaving users with a silently-broken download.
- release-rust.yml: copy *.dll from rs/target/release/ into both the zip
staging dir and the NSIS staging dir. Fail the build if no DLLs are
found (guards against sherpa-rs build.rs regressions).
- installer.nsi: File "*.dll" to include every staged runtime DLL, and
matching Delete "*.dll" in uninstall.
Verified on a Windows 10 22H2 box: dropping sherpa-onnx v1.10.34 shared
DLLs next to clx.exe lets the process start cleanly in session 1.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f8d215f commit 4b9c103
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
66 | 73 | | |
67 | 74 | | |
68 | 75 | | |
| |||
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | | - | |
| 89 | + | |
| 90 | + | |
83 | 91 | | |
84 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
85 | 96 | | |
86 | 97 | | |
87 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
0 commit comments