win, install cert

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-03-07 19:43:39 +08:00
parent e00eaee4b5
commit 9bb9a74979
31 changed files with 62 additions and 4 deletions

View File

@ -178,7 +178,7 @@ class _InstallPageBodyState extends State<_InstallPageBody>
if (b != null) driverCert.value = b;
})),
Text(
'${translate('Install driver cert')} ${translate('Virtual display requirement')}')
'${translate('Install driver cert(test cert)')} ${translate('Virtual display requirement')}')
],
),
),

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", "分辨率"),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", "安装驱动证书(测试证书)"),
("Virtual display requirement", "虚拟显示器要求")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", "Resolución"),
("No transfers in progress", "No hay transferencias en curso"),
("Set one-time password length", "Establecer contraseña de un solo uso"),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", "Risoluzione"),
("No transfers in progress", "Nessun trasferimento in corso"),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", "Resolutie"),
("No transfers in progress", "Geen overdrachten in uitvoering"),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", "Rozdzielczość"),
("No transfers in progress", "Brak transferów w toku"),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", "分辨率"),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Resolution", ""),
("No transfers in progress", ""),
("Set one-time password length", ""),
("Install driver cert(test cert)", ""),
("Virtual display requirement", "")
].iter().cloned().collect();
}

View File

@ -1084,9 +1084,6 @@ copy /Y \"{tmp_path}\\Uninstall {app_name}.lnk\" \"{start_menu}\\\"
app_name = crate::get_app_name(),
);
}
if options.contains("driverCert") {
allow_err!(cert::install_cert("IddSampleDriver.cer"));
}
let meta = std::fs::symlink_metadata(std::env::current_exe()?)?;
let size = meta.len() / 1024;
@ -1177,6 +1174,9 @@ sc delete {app_name}
);
run_cmds(cmds, debug, "install")?;
std::thread::sleep(std::time::Duration::from_millis(2000));
if options.contains("driverCert") {
allow_err!(cert::install_cert(std::path::Path::new(&path).join("IddSampleDriver.cer")));
}
if !silent {
std::process::Command::new(&exe).spawn()?;
std::process::Command::new(&exe).arg("--tray").spawn()?;