rustdesk/flutter/run.sh

10 lines
425 B
Bash
Raw Permalink Normal View History

2022-09-15 18:27:10 +08:00
#!/usr/bin/env bash
2023-11-01 17:04:32 +08:00
cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid
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/
cargo build --features flutter
2022-09-15 18:27:10 +08:00
flutter run $@