This commit is contained in:
Kabir Kalsi 2026-03-17 08:55:28 +01:00 committed by GitHub
commit c2b5446ea3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,9 @@
# Compile Vodozemac for web
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml)
version=$(expr "$version" : '\^*\(.*\)')
git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac
if [ ! -d ".vodozemac" ]; then
git clone https://github.com/famedly/dart-vodozemac.git -b v0.4.1 .vodozemac
fi
cd .vodozemac
cargo install flutter_rust_bridge_codegen
flutter_rust_bridge_codegen build-web --dart-root dart --rust-root $(readlink -f rust) --release
@ -21,4 +23,4 @@ curl -L "https://github.com/famedly/dart_native_imaging/releases/download/v${ver
unzip native_imaging.zip
mv js/* web/
rmdir js
rm native_imaging.zip
rm native_imaging.zip