feat: Enable native imaging for web
This commit is contained in:
parent
55705942ef
commit
6e87353e08
5 changed files with 14 additions and 9 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue