diff --git a/src-tauri/AGENTS.md b/src-tauri/AGENTS.md index 0fbdb54..002e35a 100644 --- a/src-tauri/AGENTS.md +++ b/src-tauri/AGENTS.md @@ -91,7 +91,7 @@ cargo clean ## 项目结构 ``` -tauri-shell/ +app-desktop/ ├── src/ │ ├── main.rs # 入口文件 (仅调用 lib::run) │ ├── lib.rs # 核心应用逻辑 (注册插件、命令、状态) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index c442f98..95f7a9a 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -47,6 +47,17 @@ version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" +[[package]] +name = "app-desktop" +version = "0.1.0" +dependencies = [ + "serde", + "tauri", + "tauri-build", + "tauri-plugin-shell", + "tokio", +] + [[package]] name = "atk" version = "0.18.2" @@ -3423,17 +3434,6 @@ dependencies = [ "wry", ] -[[package]] -name = "tauri-shell" -version = "0.1.0" -dependencies = [ - "serde", - "tauri", - "tauri-build", - "tauri-plugin-shell", - "tokio", -] - [[package]] name = "tauri-utils" version = "2.8.1" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index e3e4dfb..39e7b45 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "tauri-shell" +name = "app-desktop" version = "0.1.0" description = "A Tauri App" authors = ["imbytecat"] @@ -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_shell_lib" +name = "app_desktop_lib" crate-type = ["staticlib", "cdylib", "rlib"] [build-dependencies] diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 92d2dfa..97a7e83 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -2,5 +2,5 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] fn main() { - tauri_shell_lib::run() + app_desktop_lib::run() } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 4f44e3c..ebc12f1 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,8 +1,8 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "tauri-shell", + "productName": "app-desktop", "version": "0.1.0", - "identifier": "com.imbytecat.tauri-shell", + "identifier": "com.imbytecat.app-desktop", "app": { "withGlobalTauri": true, "windows": [],