Allow building without ONNX Runtime
flutter_onnxruntime downloads ORT natively at build time, and the Linux and Windows downloads from github.com/microsoft/onnxruntime are unavailable. scripts/onnx.sh off swaps in a pure-Dart stub via pubspec_overrides.yaml, so no platform pulls ORT; image messages then show as unavailable, as on web. Linux CI builds use this mode for now.
This commit is contained in:
1 parent
34ea0cb7ca
commit
d7fff0533e
12 files changed
+215
-13
No files matched your search
@@ -72,8 +72,11 @@ appdir="$workspace/squashfs-root"
|
||||
log 'Checking extracted AppImage structure'
|
||||
[[ -x "$appdir/AppRun" && -f "$appdir/usr/bin/lib/libapp.so" && \
|
||||
-f "$appdir/usr/bin/data/icudtl.dat" && -d "$appdir/usr/bin/data/flutter_assets" ]]
|
||||
[[ -f "$appdir/usr/bin/lib/libonnxruntime.so.1" && \
|
||||
-f "$appdir/usr/share/glib-2.0/schemas/gschemas.compiled" ]]
|
||||
[[ -f "$appdir/usr/share/glib-2.0/schemas/gschemas.compiled" ]]
|
||||
# ONNX-free builds (scripts/onnx.sh off) have neither the plugin nor ORT.
|
||||
if [[ -f "$appdir/usr/bin/lib/libflutter_onnxruntime_plugin.so" ]]; then
|
||||
[[ -f "$appdir/usr/bin/lib/libonnxruntime.so.1" ]]
|
||||
fi
|
||||
|
||||
log 'Starting bundled ELF architecture audit'
|
||||
elf_count=0
|
||||
|
||||
Reference in new issue
Block a user