build: bundle onnxruntime in linux releases
This commit is contained in:
@@ -40,9 +40,20 @@ Use `libpipewire-0.3`, not `pipewire-0.3`. The latter probe will fail even on a
|
||||
correctly provisioned host because it is not the module name exported by the
|
||||
PipeWire development package.
|
||||
|
||||
## Optional: bundle ONNX Runtime
|
||||
## Bundled ONNX Runtime
|
||||
|
||||
If you want the Linux bundle to include ONNX Runtime for Silero VAD, export:
|
||||
Linux release builds include ONNX Runtime for Silero VAD by default. The build
|
||||
helper downloads the official Linux CPU archive into `.cache/onnxruntime/` for
|
||||
the current target architecture and stages `libonnxruntime.so` into the app
|
||||
bundle.
|
||||
|
||||
To pin a specific ONNX Runtime release, export:
|
||||
|
||||
```bash
|
||||
export CHANORA_ONNXRUNTIME_VERSION=1.26.0
|
||||
```
|
||||
|
||||
To use a local shared library instead of downloading the archive, export:
|
||||
|
||||
```bash
|
||||
export CHANORA_ONNXRUNTIME_SHARED_LIB=/absolute/path/to/libonnxruntime.so
|
||||
@@ -87,5 +98,5 @@ To build a `.deb` package:
|
||||
./tools/build-linux-deb.sh
|
||||
```
|
||||
|
||||
If `CHANORA_ONNXRUNTIME_SHARED_LIB` is set, the Debian helper now verifies that
|
||||
`libonnxruntime.so` was actually bundled before packaging.
|
||||
The Debian helper verifies that `libonnxruntime.so` was actually bundled before
|
||||
packaging.
|
||||
|
||||
Reference in New Issue
Block a user