mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 02:16:00 +02:00
fix: windows compile
This commit is contained in:
parent
821f042fd9
commit
c4a2325d94
2 changed files with 8 additions and 1 deletions
3
build.py
3
build.py
|
@ -268,6 +268,9 @@ def build_flutter_arch_manjaro(version, features):
|
||||||
|
|
||||||
def build_flutter_windows(version, features):
|
def build_flutter_windows(version, features):
|
||||||
os.system(f'cargo build --features {features} --lib --release')
|
os.system(f'cargo build --features {features} --lib --release')
|
||||||
|
if not os.path.exists("target/release/librustdesk.dll"):
|
||||||
|
print("cargo build failed, please check rust source code.")
|
||||||
|
exit(-1)
|
||||||
os.chdir('flutter')
|
os.chdir('flutter')
|
||||||
os.system('flutter build windows --release')
|
os.system('flutter build windows --release')
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
use hbb_common::log::{debug, error, info};
|
use hbb_common::log::{debug, error, info};
|
||||||
use lazy_static::lazy_static;
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
use libappindicator::AppIndicator;
|
use libappindicator::AppIndicator;
|
||||||
use std::env::temp_dir;
|
use std::env::temp_dir;
|
||||||
|
@ -7,6 +6,11 @@ use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
sync::{Arc, Mutex, RwLock},
|
sync::{Arc, Mutex, RwLock},
|
||||||
};
|
};
|
||||||
|
use trayicon::{MenuBuilder, TrayIconBuilder};
|
||||||
|
use winit::{
|
||||||
|
event::Event,
|
||||||
|
event_loop::{ControlFlow, EventLoop},
|
||||||
|
};
|
||||||
|
|
||||||
#[derive(Clone, Eq, PartialEq, Debug)]
|
#[derive(Clone, Eq, PartialEq, Debug)]
|
||||||
enum Events {
|
enum Events {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue