From 7adadfe2cdb94f6e844b3631f95d96af96d474cd Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Sat, 18 Jul 2026 13:20:53 +0000 Subject: [PATCH] desktop: show only desktop .deb packages for current architecture in updater (#7270) --- .../chat/simplex/common/views/helpers/AppUpdater.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/helpers/AppUpdater.kt b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/helpers/AppUpdater.kt index 783c438f66..82365ac1f5 100644 --- a/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/helpers/AppUpdater.kt +++ b/apps/multiplatform/common/src/desktopMain/kotlin/chat/simplex/common/views/helpers/AppUpdater.kt @@ -388,8 +388,12 @@ private fun chooseGitHubReleaseAssets(release: GitHubRelease): List // No need to show download options for Flatpak users emptyList() } else if (desktopPlatform.isLinux() && !isRunningFromAppImage() && Runtime.getRuntime().exec("which dpkg").onExit().join().exitValue() == 0) { - // Show all available .deb packages and user will choose the one that works on his system (for Debian derivatives) - release.assets.filter { it.name.lowercase().endsWith(".deb") } + // Show desktop .deb packages for the current architecture and user will choose the one that works on his system (for Debian derivatives) + val arch = if (desktopPlatform == DesktopPlatform.LINUX_AARCH64) "aarch64" else "x86_64" + release.assets.filter { asset -> + val name = asset.name.lowercase() + name.startsWith("simplex-desktop-") && name.endsWith("$arch.deb") + } } else { release.assets.filter { it.name == desktopPlatform.githubAssetName } }