kodact-cli 0.1.0

The kodact binary: interactive and print modes, the stream-json host protocol, subcommands.
1
2
3
4
5
6
7
8
9
10
11
12
//! On Windows, the KodAct cube becomes kodact.exe's icon (`assets/kodact.rc`).
//! A build without a resource compiler fails here rather than ship no icon.

fn main() {
    if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
        println!("cargo:rerun-if-changed=assets/kodact.rc");
        println!("cargo:rerun-if-changed=assets/kodact.ico");
        embed_resource::compile("assets/kodact.rc", embed_resource::NONE)
            .manifest_optional()
            .expect("the kodact icon (assets/kodact.rc) could not be compiled");
    }
}