snoud/build.rs

16 lines
250 B
Rust
Raw Normal View History

2024-01-02 14:32:10 +01:00
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(())
}
}