rustdesk/flutter/run.sh

10 lines
450 B
Bash
Raw Normal View History

2022-09-15 18:27:10 +08:00
#!/usr/bin/env bash
2023-06-29 13:25:17 +08:00
cargo install flutter_rust_bridge_codegen --version 1.75.3 --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/
2023-06-29 13:25:17 +08:00
cargo build --features "flutter,flutter_texture_render"
2022-09-15 18:27:10 +08:00
flutter run $@