mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
fix ci
This commit is contained in:
@@ -11,11 +11,13 @@ fn gen_name(lic: &License) -> ResultType<String> {
|
||||
fn main() {
|
||||
let args: Vec<_> = std::env::args().skip(1).collect();
|
||||
let api = args.get(2).cloned().unwrap_or_default();
|
||||
let relay = args.get(3).cloned().unwrap_or_default();
|
||||
if args.len() >= 2 {
|
||||
match gen_name(&License {
|
||||
key: args[0].clone(),
|
||||
host: args[1].clone(),
|
||||
api,
|
||||
relay,
|
||||
}) {
|
||||
Ok(name) => println!("rustdesk-licensed-{}.exe", name),
|
||||
Err(e) => println!("{:?}", e),
|
||||
|
||||
Reference in New Issue
Block a user