clairlune-cli 0.10.0

Developer CLI for Clairlune: render procedural ASCII-art wallpapers to PNG from a seed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Embeds the Windows application manifest (MSVC linker).
fn main() {
    println!("cargo:rerun-if-changed=res/clairlune.manifest");
    let windows = std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows");
    let msvc = std::env::var("CARGO_CFG_TARGET_ENV").as_deref() == Ok("msvc");
    if windows && msvc {
        let manifest = std::path::Path::new(&std::env::var("CARGO_MANIFEST_DIR").unwrap())
            .join("res")
            .join("clairlune.manifest");
        println!("cargo:rustc-link-arg-bins=/MANIFEST:EMBED");
        println!(
            "cargo:rustc-link-arg-bins=/MANIFESTINPUT:{}",
            manifest.display()
        );
    }
}