build: unwrap embed_resource::compile

This commit is contained in:
Rudxain 2025-07-24 23:16:04 -04:00
commit 3aa7f56d0c
No known key found for this signature in database
GPG key ID: 0DAC837DDEF8E96C

View file

@ -3,7 +3,9 @@ const META: &str = "resources/assets/manifest.rc";
fn main() -> Result<(), Box<dyn std::error::Error>> { fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("cargo::rerun-if-changed={META}"); println!("cargo::rerun-if-changed={META}");
if std::env::var("CARGO_CFG_TARGET_FAMILY")? == "windows" { if std::env::var("CARGO_CFG_TARGET_FAMILY")? == "windows" {
embed_resource::compile(META, embed_resource::NONE); embed_resource::compile(META, embed_resource::NONE)
.manifest_optional()
.unwrap();
} }
Ok(()) Ok(())
} }