Skip to content

Commit

Permalink
Update download URL
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezk committed Feb 25, 2024
1 parent c20ab0f commit 9db6244
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/gpgui-helper/src-tauri/src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,14 @@ impl GuiUpdater {
info!("Update GUI, version: {}", self.version);

#[cfg(target_arch = "x86_64")]
let arch = "amd64";
let arch = "x86_64";
#[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);

info!("Downloading file: {}", file_url);
Expand Down

0 comments on commit 9db6244

Please sign in to comment.