blob: 126fbafc0338bfdc1e094e1be06e7f2f1e96210d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#[cfg(windows)]
extern crate winapi;
#[cfg(windows)]
extern crate winres;
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");
}
}
|