fix: enable custom-protocol feature so release embeds frontend assets
This commit is contained in:
@@ -8,6 +8,11 @@ rust-version.workspace = true
|
||||
name = "xianren_desktop_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[features]
|
||||
# 生产构建启用该特性后,前端资源会内嵌进 exe 并通过自定义协议加载;
|
||||
# 开发模式(tauri dev)不启用,继续使用 Vite 开发服务器。
|
||||
custom-protocol = ["tauri/custom-protocol"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user