Fix/exe upgrade options (#9001)

* fix: exe upgrade, use previous options

Signed-off-by: fufesou <linlong1266@gmail.com>

* refact: msi, shortcuts options, swap pos

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2024-08-08 22:07:06 +08:00
committed by GitHub
parent 049c334db3
commit f4c40d733e
7 changed files with 94 additions and 13 deletions

View File

@@ -426,6 +426,14 @@ pub fn install_path() -> String {
return "".to_owned();
}
#[inline]
pub fn install_options() -> String {
#[cfg(windows)]
return crate::platform::windows::get_install_options();
#[cfg(not(windows))]
return "{}".to_owned();
}
#[inline]
pub fn get_socks() -> Vec<String> {
#[cfg(not(any(target_os = "android", target_os = "ios")))]