widget/icon: Bundle icons on macOS, not just Windows
This commit is contained in:
parent
0d69cd9183
commit
46d9f0c344
4 changed files with 10 additions and 8 deletions
4
build.rs
4
build.rs
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue