Configure profile.release to reduce binary size

- Strip symbols and stuff
- Also change default icon in OSD
This commit is contained in:
Candifloss 2025-12-11 10:42:18 +05:30
parent af951f8664
commit 8343dc18f2
2 changed files with 9 additions and 2 deletions

View File

@ -4,4 +4,11 @@ members = [
"crates/popcorn",
"crates/popcorn-d",
"crates/popcorn-conf",
]
]
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"
opt-level = "z"
panic = "abort"

View File

@ -51,7 +51,7 @@ fn set_ui_props(ui: &OSDpopup, args: &OsdArgs) -> Result<(), Box<dyn std::error:
let icon_size = value_font_size;
let icon_font_color = value_font_color;
let icon_font = "IosevkaTermSlab Nerd Font Mono";
let icon_glyph = args.icon.as_deref().unwrap_or("");
let icon_glyph = args.icon.as_deref().unwrap_or("");
// Config values -> Slint component properties
ui.set_popup_width(popup_width);