Files

10 lines
443 B
Bash
Raw Permalink Normal View History

2022-09-15 18:27:10 +08:00
#!/usr/bin/env bash
2026-05-26 11:44:51 +08:00
cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid --locked
2022-09-15 18:27:10 +08:00
flutter pub get
2023-06-29 13:25:17 +08:00
~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ../src/flutter_ffi.rs --dart-output ./lib/generated_bridge.dart --c-output ./macos/Runner/bridge_generated.h
2022-09-15 18:27:10 +08:00
# call `flutter clean` if cargo build fails
# export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
2026-05-26 11:44:51 +08:00
cargo build --locked --features flutter
2022-09-15 18:27:10 +08:00
flutter run $@