✨ Optimize package size.
This commit is contained in:
@@ -18,9 +18,6 @@ tauri-build = { version = "1.2.1", features = [] }
|
||||
serde_json = "1.0.89"
|
||||
serde = { version = "1.0.150", features = ["derive"] }
|
||||
tauri = { version = "1.2.4", features = ["api-all", "system-tray"] }
|
||||
image = "0.24.5"
|
||||
home = "0.5"
|
||||
dirs = "5.0"
|
||||
download_rs = { version = "0.2.0", features = ["sync_download"] }
|
||||
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
|
||||
|
||||
@@ -31,3 +28,8 @@ default = ["custom-protocol"]
|
||||
# this feature is used used for production builds where `devPath` points to the filesystem
|
||||
# DO NOT remove this
|
||||
custom-protocol = ["tauri/custom-protocol"]
|
||||
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z" # 或者 "s",以优化大小
|
||||
lto = true
|
||||
|
||||
Reference in New Issue
Block a user