mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: fix potential ci error
This commit is contained in:
@ -1,17 +1,5 @@
|
||||
use lib_infra::code_gen;
|
||||
use lib_infra::code_gen::dart_event;
|
||||
|
||||
fn main() {
|
||||
code_gen::protobuf_file::gen(env!("CARGO_PKG_NAME"), "./src/protobuf/proto");
|
||||
#[cfg(feature = "flutter")]
|
||||
copy_dart_event_files();
|
||||
}
|
||||
|
||||
#[cfg(feature = "flutter")]
|
||||
fn copy_dart_event_files() {
|
||||
let workspace_dir = std::env::var("CARGO_MAKE_WORKING_DIRECTORY").unwrap();
|
||||
let flutter_sdk_path = std::env::var("FLUTTER_FLOWY_SDK_PATH").unwrap();
|
||||
let output_file = format!("{}/{}/lib/dispatch/dart_event.dart", workspace_dir, flutter_sdk_path);
|
||||
println!("cargo:rerun-if-changed={}", output_file);
|
||||
dart_event::write_dart_event_file(&output_file);
|
||||
}
|
||||
|
Reference in New Issue
Block a user