增强node环境检查

This commit is contained in:
xintaofei
2026-03-28 22:17:50 +08:00
parent ffa7188ee5
commit 02266039cf
2 changed files with 107 additions and 1 deletions

View File

@@ -34,7 +34,10 @@ fn get_folder_id_from_url(window: &tauri::Window) -> Option<i32> {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
let _ = fix_path_env::fix();
if let Err(err) = fix_path_env::fix() {
eprintln!("[PATH] fix_path_env failed: {err}");
}
process::ensure_node_in_path();
tauri::Builder::default()
.plugin(tauri_plugin_window_state::Builder::new().build())