fix(update): win aarch64 (#15389)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-06-23 17:59:29 +08:00
committed by GitHub
parent 0c6df924d1
commit 09bc9056c9
3 changed files with 26 additions and 3 deletions

View File

@@ -136,10 +136,17 @@ fn check_update(manually: bool) -> ResultType<()> {
let version = download_url.split('/').last().unwrap_or_default();
#[cfg(target_os = "windows")]
let download_url = if cfg!(feature = "flutter") {
let Some(arch) = crate::platform::windows::release_arch_suffix() else {
bail!(
"Unsupported Windows release architecture: {}",
std::env::consts::ARCH
);
};
format!(
"{}/rustdesk-{}-x86_64.{}",
"{}/rustdesk-{}-{}.{}",
download_url,
version,
arch,
if update_msi { "msi" } else { "exe" }
)
} else {