mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
portable-service: enable quick_support by rename as xxxqs.exe
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -64,6 +64,7 @@ fn main() {
|
||||
i += 1;
|
||||
}
|
||||
let click_setup = args.is_empty() && arg_exe.to_lowercase().ends_with("install.exe");
|
||||
let quick_support = args.is_empty() && arg_exe.to_lowercase().ends_with("qs.exe");
|
||||
|
||||
let reader = BinaryReader::default();
|
||||
if let Some(exe) = setup(
|
||||
@@ -72,7 +73,9 @@ fn main() {
|
||||
click_setup || args.contains(&"--silent-install".to_owned()),
|
||||
) {
|
||||
if click_setup {
|
||||
args = vec!["--install".to_owned()]
|
||||
args = vec!["--install".to_owned()];
|
||||
} else if quick_support {
|
||||
args = vec!["--quick_support".to_owned()];
|
||||
}
|
||||
execute(exe, args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user