feat: Enable native imaging for web

This commit is contained in:
Christian Kußowski 2025-10-24 13:32:59 +02:00
commit 6e87353e08
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 14 additions and 9 deletions

View file

@ -9,4 +9,12 @@ flutter_rust_bridge_codegen build-web --dart-root dart --rust-root $(readlink -f
cd ..
rm -f ./assets/vodozemac/vodozemac_bindings_dart*
mv .vodozemac/dart/web/pkg/vodozemac_bindings_dart* ./assets/vodozemac/
rm -rf .vodozemac
rm -rf .vodozemac
# Add native imaging:
cd web/
curl -L 'https://github.com/famedly/dart_native_imaging/releases/download/v0.2.1/native_imaging.zip' > native_imaging.zip # make sure to sync version with pubspec.yaml
unzip native_imaging.zip
mv js/* .
rmdir js
rm native_imaging.zip