mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-23 19:49:05 +08:00
move icon.ico to res
This commit is contained in:
parent
1db743affa
commit
72e20e5020
4
build.rs
4
build.rs
@ -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();
|
||||||
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
Loading…
Reference in New Issue
Block a user