rustdesk/libs/portable/build.rs

11 lines
315 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() {
2023-09-03 01:52:07 +08:00
let runner_res_path = "Runner.res";
match fs::metadata(runner_res_path) {
2023-09-03 01:52:07 +08:00
Ok(_) => println!("cargo:rustc-link-lib=dylib:+verbatim=./libs/portable/Runner.res"),
Err(_) => embed_resource::compile("icon.rc", embed_resource::NONE),
}
2022-09-21 11:28:28 +08:00
}