From 0df0bcb85582fa1d021d059a586135435ed74b67 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sun, 18 Jan 2026 16:27:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E7=BB=93=E6=9E=84=E5=B9=B6=E6=9B=B4=E6=96=B0=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新项目目录名为 app-desktop 以反映新的项目结构命名规范 - 添加应用桌面模块并移除已弃用的 tauri-shell 包依赖 - 更新项目名称和库名称以反映新的应用标识 - 将主函数中的启动逻辑从 tauri_shell_lib 改为 app_desktop_lib - 更新应用名称和标识符以反映新的项目名称。 --- src-tauri/AGENTS.md | 2 +- src-tauri/Cargo.lock | 22 +++++++++++----------- src-tauri/Cargo.toml | 4 ++-- src-tauri/src/main.rs | 2 +- src-tauri/tauri.conf.json | 4 ++-- 5 files changed, 17 insertions(+), 17 deletions(-) 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": [],