feat: embed the carrier icon in the Windows exe
This commit is contained in:
parent
65c0ad2c77
commit
0b20b56cba
4 changed files with 24 additions and 0 deletions
10
build.rs
Normal file
10
build.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Windows reads the taskbar and Explorer icon from the exe's resource
|
||||
// section; desktop environments on other platforms use the desktop file.
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=data/icons/com.randogoth.carrier.ico");
|
||||
if std::env::var("CARGO_CFG_WINDOWS").is_ok() {
|
||||
let mut res = winresource::WindowsResource::new();
|
||||
res.set_icon("data/icons/com.randogoth.carrier.ico");
|
||||
res.compile().expect("failed to embed Windows icon");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue