mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-20 06:56:17 -05:00
Merge pull request #590 from setarcos/unsupported
This commit is contained in:
1 file changed
+9
-4
@@ -88,6 +88,10 @@ impl GuiUpdater {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn update(&self) {
|
pub async fn update(&self) {
|
||||||
|
if !cfg!(any(target_arch = "x86_64", target_arch = "aarch64")) {
|
||||||
|
info!("GUI version is not supported on this architecture.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
info!("Update GUI, version: {}", self.version);
|
info!("Update GUI, version: {}", self.version);
|
||||||
|
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
@@ -99,10 +103,11 @@ impl GuiUpdater {
|
|||||||
format!("v{}", self.version)
|
format!("v{}", self.version)
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(target_arch = "x86_64")]
|
let arch = if cfg!(target_arch = "x86_64") {
|
||||||
let arch = "x86_64";
|
"x86_64"
|
||||||
#[cfg(target_arch = "aarch64")]
|
} else {
|
||||||
let arch = "aarch64";
|
"aarch64"
|
||||||
|
};
|
||||||
|
|
||||||
let file_url = format!(
|
let file_url = format!(
|
||||||
"https://github.com/yuezk/GlobalProtect-openconnect/releases/download/{}/gpgui_{}.bin.tar.xz",
|
"https://github.com/yuezk/GlobalProtect-openconnect/releases/download/{}/gpgui_{}.bin.tar.xz",
|
||||||
|
|||||||
Reference in new issue
Block a user