refactor: 重命名桌面应用为 server-desktop

- 更新项目结构中的目录名称为 server-desktop
- 将应用名称从 `app-desktop` 更改为 `server-desktop`
- 将桌面应用的包名和库名从 app-desktop 和 app_desktop_lib 更改为 server-desktop 和 server_desktop_lib。
- 将主函数中的运行入口从 app_desktop_lib 更改为 server_desktop_lib。
- 更新产品名称和标识符以反映新的应用名称为 server-desktop。
This commit is contained in:
2026-01-21 23:59:39 +08:00
parent fc846fa24d
commit 7d3df0ec49
5 changed files with 7 additions and 7 deletions

View File

@@ -91,7 +91,7 @@ cargo clean
## 项目结构 ## 项目结构
``` ```
app-desktop/ server-desktop/
├── src/ ├── src/
│ ├── main.rs # 入口文件 (仅调用 lib::run) │ ├── main.rs # 入口文件 (仅调用 lib::run)
│ ├── lib.rs # 核心应用逻辑 (注册插件、命令、状态) │ ├── lib.rs # 核心应用逻辑 (注册插件、命令、状态)

View File

@@ -48,7 +48,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
[[package]] [[package]]
name = "app-desktop" name = "server-desktop"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"serde", "serde",

View File

@@ -1,5 +1,5 @@
[package] [package]
name = "app-desktop" name = "server-desktop"
version = "0.1.0" version = "0.1.0"
description = "A Tauri App" description = "A Tauri App"
authors = ["imbytecat"] authors = ["imbytecat"]
@@ -11,7 +11,7 @@ edition = "2021"
# The `_lib` suffix may seem redundant but it is necessary # The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name. # 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 # This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "app_desktop_lib" name = "server_desktop_lib"
crate-type = ["staticlib", "cdylib", "rlib"] crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies] [build-dependencies]

View File

@@ -2,5 +2,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() { fn main() {
app_desktop_lib::run() server_desktop_lib::run()
} }

View File

@@ -1,8 +1,8 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "app-desktop", "productName": "server-desktop",
"version": "0.1.0", "version": "0.1.0",
"identifier": "com.imbytecat.app-desktop", "identifier": "com.imbytecat.server-desktop",
"app": { "app": {
"withGlobalTauri": true, "withGlobalTauri": true,
"windows": [], "windows": [],