Change embed-resource dep to slimmer winres (#5630)

This commit is contained in:
Reilly Wood
2022-05-24 23:28:10 -04:00
committed by GitHub
parent 06cf3fa5ad
commit afcacda35f
4 changed files with 18 additions and 85 deletions

View File

@@ -1,6 +1,12 @@
#[cfg(windows)]
fn main() {
embed_resource::compile_for("assets/nushell.rc", &["nu"])
let mut res = winres::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))]