mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-28 07:37:54 +08:00
10 lines
425 B
Bash
Executable File
10 lines
425 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
cargo install flutter_rust_bridge_codegen --version 1.80.1 --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 run $@
|