forked from rustdesk/rustdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
dart pub global activate ffigen --version 5.0.1 | ||
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/ | ||
RUN_FFIGEN=Y cargo build --features "flutter,flutter_texture_render" | ||
cargo build --features "flutter,flutter_texture_render" | ||
flutter run $@ |