Skip to content

Commit 996b8dd

Browse files
committed
Optimize release binary size
1 parent b81fc74 commit 996b8dd

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

.github/release-notes/v1.0.11.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## CAPS v1.0.11
2+
3+
### Changed
4+
- Optimized the Windows release build profile for smaller executables.
5+
- Reduced the release `caps.exe` size from about 21 MB to about 9.3 MB.
6+
7+
### Notes
8+
- Release builds may take longer because CAPS now uses link-time optimization.
9+
10+
## CAPS v1.0.11
11+
12+
### 调整
13+
- 优化 Windows Release 构建配置,减小可执行文件体积。
14+
- 将 Release 版本的 `caps.exe` 从约 21 MB 降低到约 9.3 MB。
15+
16+
### 说明
17+
- 由于现在启用了链接时优化,Release 构建时间可能会变长。

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "caps"
3-
version = "1.0.10"
3+
version = "1.0.11"
44
description = "CAPS"
55
authors = ["ref42"]
66
edition = "2024"
@@ -29,3 +29,10 @@ symphonia = { version = "0.6.0", features = ["mp3", "aac", "isomp4", "flac", "vo
2929

3030
[build-dependencies]
3131
winresource = "0.1.31"
32+
33+
[profile.release]
34+
opt-level = "z"
35+
lto = "fat"
36+
codegen-units = 1
37+
panic = "abort"
38+
strip = true

0 commit comments

Comments
 (0)