win, install cert
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
e00eaee4b5
commit
9bb9a74979
@ -178,7 +178,7 @@ class _InstallPageBodyState extends State<_InstallPageBody>
|
|||||||
if (b != null) driverCert.value = b;
|
if (b != null) driverCert.value = b;
|
||||||
})),
|
})),
|
||||||
Text(
|
Text(
|
||||||
'${translate('Install driver cert')} ${translate('Virtual display requirement')}')
|
'${translate('Install driver cert(test cert)')} ${translate('Virtual display requirement')}')
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", "分辨率"),
|
("Resolution", "分辨率"),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", "安装驱动证书(测试证书)"),
|
||||||
|
("Virtual display requirement", "虚拟显示器要求")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", "Resolución"),
|
("Resolution", "Resolución"),
|
||||||
("No transfers in progress", "No hay transferencias en curso"),
|
("No transfers in progress", "No hay transferencias en curso"),
|
||||||
("Set one-time password length", "Establecer contraseña de un solo uso"),
|
("Set one-time password length", "Establecer contraseña de un solo uso"),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", "Risoluzione"),
|
("Resolution", "Risoluzione"),
|
||||||
("No transfers in progress", "Nessun trasferimento in corso"),
|
("No transfers in progress", "Nessun trasferimento in corso"),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", "Resolutie"),
|
("Resolution", "Resolutie"),
|
||||||
("No transfers in progress", "Geen overdrachten in uitvoering"),
|
("No transfers in progress", "Geen overdrachten in uitvoering"),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", "Rozdzielczość"),
|
("Resolution", "Rozdzielczość"),
|
||||||
("No transfers in progress", "Brak transferów w toku"),
|
("No transfers in progress", "Brak transferów w toku"),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", "分辨率"),
|
("Resolution", "分辨率"),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -461,5 +461,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
|
|||||||
("Resolution", ""),
|
("Resolution", ""),
|
||||||
("No transfers in progress", ""),
|
("No transfers in progress", ""),
|
||||||
("Set one-time password length", ""),
|
("Set one-time password length", ""),
|
||||||
|
("Install driver cert(test cert)", ""),
|
||||||
|
("Virtual display requirement", "")
|
||||||
].iter().cloned().collect();
|
].iter().cloned().collect();
|
||||||
}
|
}
|
||||||
|
@ -1084,9 +1084,6 @@ copy /Y \"{tmp_path}\\Uninstall {app_name}.lnk\" \"{start_menu}\\\"
|
|||||||
app_name = crate::get_app_name(),
|
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 meta = std::fs::symlink_metadata(std::env::current_exe()?)?;
|
||||||
let size = meta.len() / 1024;
|
let size = meta.len() / 1024;
|
||||||
@ -1177,6 +1174,9 @@ sc delete {app_name}
|
|||||||
);
|
);
|
||||||
run_cmds(cmds, debug, "install")?;
|
run_cmds(cmds, debug, "install")?;
|
||||||
std::thread::sleep(std::time::Duration::from_millis(2000));
|
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 {
|
if !silent {
|
||||||
std::process::Command::new(&exe).spawn()?;
|
std::process::Command::new(&exe).spawn()?;
|
||||||
std::process::Command::new(&exe).arg("--tray").spawn()?;
|
std::process::Command::new(&exe).arg("--tray").spawn()?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user