min-ed-launcher/build.rs
2024-06-09 22:14:51 -06:00

14 lines
315 B
Rust

use std::path::Path;
use winresource::WindowsResource;
fn main() {
let icon_path = "resources/min-ed-launcher.ico";
if Path::new(icon_path).is_file() {
let mut res = WindowsResource::new();
res.set_icon(icon_path);
res.compile().expect("failed to build executable icon");
}
}