winres icon indicating copy to clipboard operation
winres copied to clipboard

`FileVersion` does not overwrite `version`

Open JHenneberg opened this issue 5 months ago • 0 comments

file details are showing as file version "0.1.0.0" instead of "2024.5.3.1055"

Cargo.toml:

[package]
name = "test"
version = "0.1.0"
edition = "2021"
build = "src/build.rs"

[dependencies]


[target.'cfg(windows)'.build-dependencies]
winres = "0.1"

[package.metadata.winres]
FileVersion = "2024.5.3.1055"


[lib]
crate-type = ["cdylib"]
path = "src/lib.rs"

build.rs:

#[cfg(windows)]
fn main() {
    use winres::WindowsResource;

    let mut res = WindowsResource::new();
    res.compile().unwrap();
}

#[cfg(not(windows))]
fn main() {}

JHenneberg avatar Sep 03 '24 09:09 JHenneberg