-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.rs
More file actions
22 lines (20 loc) · 717 Bytes
/
build.rs
File metadata and controls
22 lines (20 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
fn main() {
#[cfg(target_os = "windows")]
{
println!("cargo:rerun-if-changed=icon.ico");
let mut res = winresource::WindowsResource::new();
res.set_icon("icon.ico");
res.set("ProductName", "Slashsum");
res.set("CompanyName", "NDXDeveloper");
res.set("LegalCopyright", "© NDXDeveloper");
res.set(
"FileDescription",
"Calculate multiple checksums simultaneously",
);
res.set("ProductVersion", env!("CARGO_PKG_VERSION"));
res.set("FileVersion", env!("CARGO_PKG_VERSION"));
if let Err(e) = res.compile() {
println!("cargo:warning=Failed to compile resources: {}", e);
}
}
}