blob: 08c9e4944dcc81f9a34a86b08384942f53327be9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
fn main() {
const PROTO_FILE: &str = "proto/openvpn_plugin.proto";
tonic_build::compile_protos(PROTO_FILE).unwrap();
println!("cargo:rerun-if-changed={}", PROTO_FILE);
#[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");
}
}
|