rustdesk/libs/portable/build.rs

11 lines
303 B
Rust
Raw Normal View History

2022-09-21 11:28:28 +08:00
extern crate embed_resource;
use std::fs;
2022-09-21 11:28:28 +08:00
fn main() {
let runner_res_path = "./Runner.res";
match fs::metadata(runner_res_path) {
Ok(_) => println!("cargo:rustc-link-lib=dylib:+verbatim=./Runner.res"),
Err(_) => embed_resource::compile("icon.rc", embed_resource::NONE),
}
2022-09-21 11:28:28 +08:00
}