Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: log instead of stale the process when cannot rename
Vanalite7af7ffbea8a0
diff --git a/src-tauri/src/core/system/commands.rs b/src-tauri/src/core/system/commands.rsindex 249e8e421..785a70d1c 100644--- a/src-tauri/src/core/system/commands.rs+++ b/src-tauri/src/core/system/commands.rs@@ -444,8 +444,9 @@ pub fn install_jan_cli_sync<R: Runtime>(#[cfg(windows)]{if bundled.exists() {- std::fs::rename(&bundled, &dest)- .map_err(|e| format!("Failed to rename jan-cli.exe to jan.exe: {}", e))?;+ if let Err(e) = std::fs::rename(&bundled, &dest) {+ log::warn!("Could not rename jan-cli.exe to jan.exe: {}", e);+ }}add_to_path_windows(&resource_bin_dir)?;return Ok(CliInstallStatus {