diff --git a/Cargo.toml b/Cargo.toml index 2bdbf67..7c97527 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ edition = "2021" # The `_lib` suffix may seem redundant but it is necessary # to make the lib name unique and wouldn't conflict with the bin name. # This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 -name = "tauri_demo_lib" +name = "tauri_shell_lib" crate-type = ["staticlib", "cdylib", "rlib"] [build-dependencies] diff --git a/src/lib.rs b/src/lib.rs index f259618..a06fb8f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,7 @@ pub fn run() { // 注册全局状态 app.manage(SidecarProcess(std::sync::Mutex::new(None))); - // 启动 Sidecar Server 进程 + // 启动 Sidecar 进程 let app_handle = app.handle().clone(); sidecar::spawn_sidecar(app_handle); @@ -25,7 +25,7 @@ pub fn run() { .build(tauri::generate_context!()) .expect("error while building tauri application") .run(|app_handle, event| { - // 监听应用退出事件,清理 Sidecar Server 进程 + // 监听应用退出事件,清理 Sidecar 进程 match event { tauri::RunEvent::ExitRequested { .. } | tauri::RunEvent::Exit => { sidecar::cleanup_sidecar_process(app_handle); diff --git a/src/main.rs b/src/main.rs index 0e8a398..92d2dfa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,5 +2,5 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { - tauri_demo_lib::run() + tauri_shell_lib::run() }