mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-29 14:16:26 -04:00
Download gpgui from latest tag
This commit is contained in:
parent
3617dd990b
commit
0a26d6e360
@ -80,14 +80,19 @@ impl GuiUpdater {
|
|||||||
pub async fn update(&self) {
|
pub async fn update(&self) {
|
||||||
info!("Update GUI, version: {}", self.version);
|
info!("Update GUI, version: {}", self.version);
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
let release_tag = "latest";
|
||||||
|
#[cfg(not(debug_assertions))]
|
||||||
|
let release_tag = format!("v{}", self.version);
|
||||||
|
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
let arch = "x86_64";
|
let arch = "x86_64";
|
||||||
#[cfg(target_arch = "aarch64")]
|
#[cfg(target_arch = "aarch64")]
|
||||||
let arch = "aarch64";
|
let arch = "aarch64";
|
||||||
|
|
||||||
let file_url = format!(
|
let file_url = format!(
|
||||||
"https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v{}/gpgui_{}_{}.bin.tar.xz",
|
"https://github.com/yuezk/GlobalProtect-openconnect/releases/download/{}/gpgui_{}_{}.bin.tar.xz",
|
||||||
self.version, self.version, arch
|
release_tag, self.version, arch
|
||||||
);
|
);
|
||||||
let checksum_url = format!("{}.sha256", file_url);
|
let checksum_url = format!("{}.sha256", file_url);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user