Files
openhuman/src-tauri/build.rs
T
Steven EnamakelandGitHub 4dffd9526e Simplify Conversations to a single default thread (#22)
* refactor: update Conversations component and routing logic

- Replaced the Conversations component rendering in AppRoutes with a redirect to the conversations list.
- Simplified the Conversations component by removing unused imports and state variables.
- Introduced default thread creation logic to ensure a conversation is always available.
- Streamlined the effect hooks for managing thread selection and message fetching.

* refactor: remove TDLib integration and clean up related code

- Eliminated TDLib-related code and comments across multiple files to streamline the project.
- Updated build logic to remove unnecessary checks for TDLib resources.
- Refined comments for clarity regarding background service shutdown and storage mechanisms.
- Adjusted the QuickJS runtime support module to reflect the removal of TDLib integration.

* refactor conversations to single default thread UI
2026-03-26 19:38:51 -07:00

33 lines
893 B
Rust

use std::env;
fn main() {
maybe_override_tauri_config_for_local_builds();
tauri_build::build();
}
fn maybe_override_tauri_config_for_local_builds() {
let profile = env::var("PROFILE").unwrap_or_default();
let skip_resources = env::var("TAURI_SKIP_RESOURCES").is_ok() || profile == "test";
if !skip_resources {
return;
}
let mut merge_config = serde_json::json!({});
if skip_resources {
merge_config["bundle"]["resources"] = serde_json::json!([]);
}
match serde_json::to_string(&merge_config) {
Ok(json) => {
env::set_var("TAURI_CONFIG", json);
if skip_resources {
println!("cargo:warning=TAURI resources disabled for local build");
}
}
Err(err) => {
println!("cargo:warning=Failed to serialize TAURI_CONFIG override: {err}");
}
}
}