Only skip server start when CLI arg is passed

This commit is contained in:
Sapphire
2025-12-10 14:36:56 -06:00
parent 2c4dd4085f
commit 5b68a01186
2 changed files with 2 additions and 7 deletions

View File

@@ -274,12 +274,7 @@ fn setup_tauri(
app.manage(Mutex::new(window_state));
if cli.no_start_server {
log::info!("Skipping server start.");
return Ok(());
}
if server_running() {
if cli.skip_server_start_if_running && server_running() {
log::info!("Skipping server start: server is already running.");
return Ok(());
}

View File

@@ -48,7 +48,7 @@ pub struct Cli {
#[clap(long)]
pub launch_from_path: Option<PathBuf>,
#[clap(long)]
pub no_start_server: bool,
pub skip_server_start_if_running: bool,
#[clap(flatten)]
verbose: clap_verbosity_flag::Verbosity,
}