mirror of
https://github.com/miyu0-bit/frameeye-helper.git
synced 2026-10-06 01:00:14 +02:00
12 lines
535 B
Rust
12 lines
535 B
Rust
// Windows builds get the Eye icon and a manifest (runs as the normal user, DPI aware) embedded.
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=assets/app.rc");
|
|
println!("cargo:rerun-if-changed=assets/app.ico");
|
|
println!("cargo:rerun-if-changed=assets/app.manifest");
|
|
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
|
embed_resource::compile("assets/app.rc", embed_resource::NONE)
|
|
.manifest_optional()
|
|
.expect("embedding the Windows icon and manifest failed");
|
|
}
|
|
}
|