fn main() { // Embeds the app icon and VERSIONINFO into the Windows executable. #[cfg(windows)] { let mut res = winresource::WindowsResource::new(); res.set_icon("icons/icon.ico"); let version = env!("CARGO_PKG_VERSION"); res.set("CompanyName", "Polyfrost Inc."); res.set("ProductName", "OneClient"); res.set("FileDescription", "OneClient"); res.set("LegalCopyright", "© 2026 Polyfrost Inc."); res.set("OriginalFilename", "oneclient_app.exe"); res.set("InternalName", "oneclient_app"); res.set("FileVersion", version); res.set("ProductVersion", version); res.compile() .expect("failed to embed Windows icon resource"); } }