Update build.rs

This commit is contained in:
deep-soft 2023-09-02 20:52:07 +03:00 committed by GitHub
parent c9caa5687a
commit 3fab42b8d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,9 @@ extern crate embed_resource;
use std::fs;
fn main() {
let runner_res_path = "./Runner.res";
let runner_res_path = "Runner.res";
match fs::metadata(runner_res_path) {
Ok(_) => println!("cargo:rustc-link-lib=dylib:+verbatim=./Runner.res"),
Ok(_) => println!("cargo:rustc-link-lib=dylib:+verbatim=./libs/portable/Runner.res"),
Err(_) => embed_resource::compile("icon.rc", embed_resource::NONE),
}
}