From 72e20e5020f4bad9bafa77c19d0dcba8f5cc0348 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sun, 18 Sep 2022 11:26:10 +0800 Subject: [PATCH] move icon.ico to res --- build.rs | 6 +++--- icon.ico => res/icon.ico | Bin manifest.xml => res/manifest.xml | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename icon.ico => res/icon.ico (100%) rename manifest.xml => res/manifest.xml (100%) diff --git a/build.rs b/build.rs index a77d7100d..c47ef2b1c 100644 --- a/build.rs +++ b/build.rs @@ -11,12 +11,12 @@ fn build_manifest() { use std::io::Write; if std::env::var("PROFILE").unwrap() == "release" { let mut res = winres::WindowsResource::new(); - res.set_icon("icon.ico") + res.set_icon("res/icon.ico") .set_language(winapi::um::winnt::MAKELANGID( winapi::um::winnt::LANG_ENGLISH, winapi::um::winnt::SUBLANG_ENGLISH_US, )) - .set_manifest_file("manifest.xml"); + .set_manifest_file("res/manifest.xml"); match res.compile() { Err(e) => { write!(std::io::stderr(), "{}", e).unwrap(); @@ -117,4 +117,4 @@ fn main() { build_windows(); #[cfg(target_os = "macos")] println!("cargo:rustc-link-lib=framework=ApplicationServices"); -} \ No newline at end of file +} diff --git a/icon.ico b/res/icon.ico similarity index 100% rename from icon.ico rename to res/icon.ico diff --git a/manifest.xml b/res/manifest.xml similarity index 100% rename from manifest.xml rename to res/manifest.xml