
Part of #24800 https://github.com/user-attachments/assets/e70d594e-3635-4f93-9073-5abf7e9d2b20 Release Notes: - N/A
15 lines
380 B
Rust
15 lines
380 B
Rust
fn main() {
|
|
#[cfg(target_os = "windows")]
|
|
{
|
|
println!("cargo:rerun-if-changed=manifest.xml");
|
|
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set_manifest_file("manifest.xml");
|
|
res.set_icon("app-icon.ico");
|
|
|
|
if let Err(e) = res.compile() {
|
|
eprintln!("{}", e);
|
|
std::process::exit(1);
|
|
}
|
|
}
|
|
}
|