10 lines
450 B
Bash
Executable File
10 lines
450 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cargo install flutter_rust_bridge_codegen --version 1.75.3 --features uuid
|
|
flutter pub get
|
|
~/.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
|
|
# call `flutter clean` if cargo build fails
|
|
# export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
|
|
cargo build --features "flutter,flutter_texture_render"
|
|
flutter run $@
|