fn main() {
#[cfg(target_os = "windows")]
{
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
let icon_path = format!("{manifest_dir}/../../assets/tsafe.ico");
let mut res = winres::WindowsResource::new();
if std::path::Path::new(&icon_path).exists() {
res.set_icon(&icon_path);
}
res.set("ProductName", "tsafe");
res.set(
"FileDescription",
"tsafe CLI — local secret and credential manager",
);
res.set("CompanyName", "ABS Infrastructure Engineering");
res.set("LegalCopyright", "Ryan Tilcock");
res.set_version_info(winres::VersionInfo::PRODUCTVERSION, 0x0001_0000_0000_0000);
if let Err(e) = res.compile() {
eprintln!("cargo:warning=Windows resource compile skipped: {e}");
}
}
}