From 8343dc18f236675854d0d790bc473c7856e21581 Mon Sep 17 00:00:00 2001 From: candifloss Date: Thu, 11 Dec 2025 10:42:18 +0530 Subject: [PATCH] Configure `profile.release` to reduce binary size - Strip symbols and stuff - Also change default icon in OSD --- Cargo.toml | 9 ++++++++- crates/popcorn/src/show_popup.rs | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a2fe9e2..bc2b234 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,4 +4,11 @@ members = [ "crates/popcorn", "crates/popcorn-d", "crates/popcorn-conf", -] \ No newline at end of file +] + +[profile.release] +lto = "thin" +codegen-units = 1 +strip = "symbols" +opt-level = "z" +panic = "abort" \ No newline at end of file diff --git a/crates/popcorn/src/show_popup.rs b/crates/popcorn/src/show_popup.rs index 5828d16..8593923 100644 --- a/crates/popcorn/src/show_popup.rs +++ b/crates/popcorn/src/show_popup.rs @@ -51,7 +51,7 @@ fn set_ui_props(ui: &OSDpopup, args: &OsdArgs) -> Result<(), Box Slint component properties ui.set_popup_width(popup_width);