Commit 72e20e50 authored by rustdesk's avatar rustdesk

move icon.ico to res

parent 1db743af
...@@ -11,12 +11,12 @@ fn build_manifest() { ...@@ -11,12 +11,12 @@ fn build_manifest() {
use std::io::Write; use std::io::Write;
if std::env::var("PROFILE").unwrap() == "release" { if std::env::var("PROFILE").unwrap() == "release" {
let mut res = winres::WindowsResource::new(); let mut res = winres::WindowsResource::new();
res.set_icon("icon.ico") res.set_icon("res/icon.ico")
.set_language(winapi::um::winnt::MAKELANGID( .set_language(winapi::um::winnt::MAKELANGID(
winapi::um::winnt::LANG_ENGLISH, winapi::um::winnt::LANG_ENGLISH,
winapi::um::winnt::SUBLANG_ENGLISH_US, winapi::um::winnt::SUBLANG_ENGLISH_US,
)) ))
.set_manifest_file("manifest.xml"); .set_manifest_file("res/manifest.xml");
match res.compile() { match res.compile() {
Err(e) => { Err(e) => {
write!(std::io::stderr(), "{}", e).unwrap(); write!(std::io::stderr(), "{}", e).unwrap();
...@@ -117,4 +117,4 @@ fn main() { ...@@ -117,4 +117,4 @@ fn main() {
build_windows(); build_windows();
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
println!("cargo:rustc-link-lib=framework=ApplicationServices"); println!("cargo:rustc-link-lib=framework=ApplicationServices");
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment