mirror of
https://github.com/nushell/nushell
synced 2024-12-25 12:33:17 +00:00
f9049c4c6c
This MR closes #8986; big thanks to @WindSoilder for investigating this and making the MR very easy. I did manual testing to confirm that the icon etc. are still being set correctly after this change. Also skimmed the `winresource` code, no issues jumped out at me.
13 lines
386 B
Rust
13 lines
386 B
Rust
#[cfg(windows)]
|
|
fn main() {
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set("ProductName", "Nushell");
|
|
res.set("FileDescription", "Nushell");
|
|
res.set("LegalCopyright", "Copyright (C) 2022");
|
|
res.set_icon("assets/nu_logo.ico");
|
|
res.compile()
|
|
.expect("Failed to run the Windows resource compiler (rc.exe)");
|
|
}
|
|
|
|
#[cfg(not(windows))]
|
|
fn main() {}
|