Update download URL

This commit is contained in:
Kevin Yue 2024-02-25 20:07:14 +08:00
parent c20ab0f393
commit 9db62448d9

View File

@ -81,11 +81,14 @@ impl GuiUpdater {
info!("Update GUI, version: {}", self.version); info!("Update GUI, version: {}", self.version);
#[cfg(target_arch = "x86_64")] #[cfg(target_arch = "x86_64")]
let arch = "amd64"; let arch = "x86_64";
#[cfg(target_arch = "aarch64")] #[cfg(target_arch = "aarch64")]
let arch = "arm64"; let arch = "aarch64";
let file_url = format!("https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v{}/gpgui-linux-{}", self.version, arch); let file_url = format!(
"https://github.com/yuezk/GlobalProtect-openconnect/releases/download/v{}/gpgui_${}_${}.bin.tar.xz",
self.version, self.version, arch
);
let checksum_url = format!("{}.sha256", file_url); let checksum_url = format!("{}.sha256", file_url);
info!("Downloading file: {}", file_url); info!("Downloading file: {}", file_url);