-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.rs
More file actions
19 lines (18 loc) · 696 Bytes
/
build.rs
File metadata and controls
19 lines (18 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! Build script for QuickCrypt
//! Embeds Windows icon and sets metadata
fn main() {
#[cfg(windows)]
{
if std::path::Path::new("assets/icon.ico").exists() {
let mut res = winresource::WindowsResource::new();
res.set_icon("assets/icon.ico");
res.set("ProductName", "QuickCrypt");
res.set("FileDescription", "Military-grade offline crypto toolkit");
res.set("LegalCopyright", "LAZYFROG-kindware.dev - MIT License");
res.set("CompanyName", "LAZYFROG-kindware.dev");
if let Err(e) = res.compile() {
eprintln!("Warning: Failed to embed icon: {}", e);
}
}
}
}