Optimize package size.

This commit is contained in:
Tw93
2023-04-10 13:03:25 +08:00
parent 56eae4aac8
commit 12cc608c27
4 changed files with 8 additions and 233 deletions

View File

@@ -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