opt: merge addon

Signed-off-by: Kingtous <kingtous@qq.com>
This commit is contained in:
Kingtous
2022-06-27 11:50:15 +08:00
parent 4a89469b84
commit 3f2aaae1ff
10 changed files with 35 additions and 40 deletions

View File

@@ -69,10 +69,10 @@ pub fn goto_install() {
allow_err!(crate::run_me(vec!["--install"]));
}
pub fn install_me(_options: String, _path: String) {
pub fn install_me(_options: String, _path: String, silent: bool, debug: bool) {
#[cfg(windows)]
std::thread::spawn(move || {
allow_err!(crate::platform::windows::install_me(&_options, _path));
allow_err!(crate::platform::windows::install_me(&_options, _path, silent, debug));
std::process::exit(0);
});
}