Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: refactor tauri gen files path
nathand2db49efab65
diff --git a/frontend/rust-lib/flowy-codegen/src/protobuf_file/mod.rs b/frontend/rust-lib/flowy-codegen/src/protobuf_file/mod.rsindex ca3a4f4014..96a7c691c3 100644--- a/frontend/rust-lib/flowy-codegen/src/protobuf_file/mod.rs+++ b/frontend/rust-lib/flowy-codegen/src/protobuf_file/mod.rs@@ -101,8 +101,7 @@ fn generate_ts_protobuf_files(protoc_bin_path: &Path,) {let root = std::env::var("CARGO_MAKE_WORKING_DIRECTORY").unwrap_or("../../".to_string());- let tauri_protobuf_path =- std::env::var("CARGO_MAKE_WORKING_DIRECTORY").unwrap_or("appflowy_tauri/src/protobuf".to_string());+ let tauri_protobuf_path = std::env::var("TAURI_PROTOBUF_PATH").unwrap_or("appflowy_tauri/src/protobuf".to_string());let mut output = PathBuf::new();output.push(root);diff --git a/frontend/rust-lib/flowy-codegen/src/ts_event/mod.rs b/frontend/rust-lib/flowy-codegen/src/ts_event/mod.rsindex 6d060f4229..796b4d7941 100644--- a/frontend/rust-lib/flowy-codegen/src/ts_event/mod.rs+++ b/frontend/rust-lib/flowy-codegen/src/ts_event/mod.rs@@ -14,8 +14,7 @@ use walkdir::WalkDir;pub fn gen(crate_name: &str) {let root = std::env::var("CARGO_MAKE_WORKING_DIRECTORY").unwrap_or("../../".to_string());- let tauri_protobuf_path =- std::env::var("CARGO_MAKE_WORKING_DIRECTORY").unwrap_or("appflowy_tauri/src/protobuf".to_string());+ let tauri_protobuf_path = std::env::var("TAURI_PROTOBUF_PATH").unwrap_or("appflowy_tauri/src/protobuf".to_string());let crate_path = std::fs::canonicalize(".").unwrap().as_path().display().to_string();let event_crates = parse_ts_event_files(vec![crate_path]);