feat: add icon on windows too
This commit is contained in:
parent
38a7f97cad
commit
0659698f19
5 changed files with 33 additions and 1 deletions
13
build.rs
Normal file
13
build.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use std::{env, io};
|
||||
|
||||
use winresource::WindowsResource;
|
||||
|
||||
fn main() -> Result<(), io::Error> {
|
||||
if env::var_os("CARGO_CFG_WINDOWS").is_some() {
|
||||
WindowsResource::new()
|
||||
.set_icon("res/tyrolienne.ico")
|
||||
.compile()?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue