snoud/build.rs
2024-01-02 14:32:10 +01:00

15 lines
250 B
Rust

use std::io;
#[cfg(target_os = "windows")]
use winres::WindowsResource;
fn main() -> io::Result<()> {
#[cfg(target_os = "windows")]
{
WindowsResource::new().set_icon("icon.ico").compile()
}
#[cfg(not(target_os = "windows"))]
{
Ok(())
}
}