mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-11 20:51:29 +03:00
Update build.rs
# if Runner.res not found compile icon.rc
This commit is contained in:
@@ -1,5 +1,10 @@
|
|||||||
extern crate embed_resource;
|
extern crate embed_resource;
|
||||||
|
use std::fs;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
embed_resource::compile("icon.rc", embed_resource::NONE);
|
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),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user