widget/icon: Bundle icons on macOS, not just Windows

This commit is contained in:
Ian Douglas Scott 2026-04-14 11:53:33 -07:00 committed by Michael Murphy
parent 0d69cd9183
commit 46d9f0c344
4 changed files with 10 additions and 8 deletions

View file

@ -3,7 +3,9 @@ use std::env;
fn main() {
println!("cargo::rerun-if-changed=build.rs");
if env::var_os("CARGO_CFG_UNIX").is_none() {
if env::var_os("CARGO_CFG_UNIX").is_none()
|| env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("macos")
{
generate_bundled_icons();
}
}