Strip release binary via Rust toolchain
As of Rust 1.59, full stripping support has been added (see https://blog.rust-lang.org/2022/02/24/Rust-1.59.0.html#creating-stripped-binaries).
This commit is contained in:
parent
222245a60c
commit
ba5321c4a0
@ -131,10 +131,9 @@ osx_minimum_system_version = "10.14"
|
|||||||
resources = ["mac-tray.png"]
|
resources = ["mac-tray.png"]
|
||||||
|
|
||||||
#https://github.com/johnthagen/min-sized-rust
|
#https://github.com/johnthagen/min-sized-rust
|
||||||
#!!! rembember call "strip target/release/rustdesk"
|
|
||||||
# which reduce binary size a lot
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
panic = 'abort'
|
panic = 'abort'
|
||||||
|
strip = true
|
||||||
#opt-level = 'z' # only have smaller size after strip
|
#opt-level = 'z' # only have smaller size after strip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user