chessbaseLinux/apps/desktop/build.rs
vrubel 8188b584aa
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
ChessPenguin 0.1.0
Native chess database for Linux: PGN library, notation with variations and
comments, UCI engine analysis, move entry and export.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 01:54:06 +03:00

10 lines
406 B
Rust

// Embeds the application icon into the Windows executable.
fn main() {
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
let mut res = winresource::WindowsResource::new();
res.set_icon("../../packaging/windows/chesspenguin.ico");
if let Err(e) = res.compile() {
println!("cargo:warning=could not embed the Windows icon: {e}");
}
}
}