12 lines
No EOL
498 B
Bash
Executable file
12 lines
No EOL
498 B
Bash
Executable file
#!/bin/sh -ve
|
|
|
|
version=$(yq ".dependencies.flutter_vodozemac" < pubspec.yaml)
|
|
version=$(expr "$version" : '\^*\(.*\)')
|
|
git clone https://github.com/famedly/dart-vodozemac.git -b ${version} .vodozemac
|
|
cd .vodozemac
|
|
cargo install flutter_rust_bridge_codegen
|
|
flutter_rust_bridge_codegen build-web --dart-root dart --rust-root $(readlink -f rust) --release
|
|
cd ..
|
|
rm -f ./assets/vodozemac/vodozemac_bindings_dart*
|
|
mv .vodozemac/dart/web/pkg/vodozemac_bindings_dart* ./assets/vodozemac/
|
|
rm -rf .vodozemac |