Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
build(cli): gate desktop-only setup/updater modules out of headless jan build (#8467)
Thinh Le6f4406f17651
diff --git a/src-tauri/src/core/mod.rs b/src-tauri/src/core/mod.rsindex 85d803c6c..88cd8c19b 100644--- a/src-tauri/src/core/mod.rs+++ b/src-tauri/src/core/mod.rs@@ -6,6 +6,9 @@ pub mod downloads;pub mod filesystem;pub mod mcp;pub mod server;+// Desktop-only app setup (tray, theme, window wiring); pulls in Tauri GUI types+// (Wry/AppHandle) the headless `jan` CLI build does not link.+#[cfg(not(feature = "cli"))]pub mod setup;pub mod state;pub mod system;diff --git a/src-tauri/src/core/updater/mod.rs b/src-tauri/src/core/updater/mod.rsindex ca23b0d79..8a352fb4e 100644--- a/src-tauri/src/core/updater/mod.rs+++ b/src-tauri/src/core/updater/mod.rs@@ -1,3 +1,6 @@+// Desktop-only Tauri commands (AppHandle<Wry>); the headless `jan` CLI build+// still uses the sibling `hmac_client`/`session` modules via `downloads`.+#[cfg(not(feature = "cli"))]pub mod commands;pub mod custom_updater;pub mod hmac_client;