rustdesk/flutter/run.sh

10 lines
425 B
Bash
Raw Normal View History

2022-09-15 13:27:10 +03:00
#!/usr/bin/env bash
2023-11-01 12:04:32 +03:00
cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid
2022-09-15 13:27:10 +03:00
flutter pub get
2023-06-29 08:25:17 +03: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 13:27:10 +03:00
# call `flutter clean` if cargo build fails
# export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
cargo build --features flutter
2022-09-15 13:27:10 +03:00
flutter run $@