15 lines
332 B
Rust
15 lines
332 B
Rust
|
use {
|
||
|
std::{env, io},
|
||
|
winres::WindowsResource,
|
||
|
};
|
||
|
|
||
|
fn main() -> io::Result<()> {
|
||
|
if env::var_os("CARGO_CFG_WINDOWS").is_some() {
|
||
|
WindowsResource::new()
|
||
|
// This path can be absolute, or relative to your crate root.
|
||
|
.set_icon("src/um-react.ico")
|
||
|
.compile()?;
|
||
|
}
|
||
|
Ok(())
|
||
|
}
|