blob: f12d4d84ada9f686098c8d11e8595e75ffb1f977 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
fn main() {
#[cfg(windows)]
{
let product_version = env!("CARGO_PKG_VERSION").replacen(".0", "", 1);
let mut res = winres::WindowsResource::new();
res.set("ProductVersion", &product_version);
res.set_icon("../dist-assets/icon.ico");
res.set_language(winapi::um::winnt::MAKELANGID(
winapi::um::winnt::LANG_ENGLISH,
winapi::um::winnt::SUBLANG_ENGLISH_US,
));
res.compile().expect("Unable to generate windows resources");
}
}
|