fix: reduced app size by a good margin

This commit is contained in:
2026-07-20 08:44:17 +02:00
parent 7ba2699b68
commit 269e4b0e4a
21 changed files with 494 additions and 96 deletions

View File

@@ -1,6 +1,12 @@
fn main() {
println!("cargo:rerun-if-changed=assets/app-icons/bds.ico");
// Wry and bds-core both reach objc2's native exception helper across
// separate Rust dylibs, so retain the static helper on the UI link line.
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos") {
println!("cargo:rustc-link-arg=-lobjc2_exception_helper_0_1");
}
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
winresource::WindowsResource::new()
.set_icon("assets/app-icons/bds.ico")