From 7e98a78b6d58a21de3fb8fd18c75cc67c38bf2ab Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sat, 11 Jul 2026 21:25:49 +0300 Subject: [PATCH] flatpak update check --- main.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/main.ts b/main.ts index 575da37..2a7e737 100644 --- a/main.ts +++ b/main.ts @@ -634,6 +634,25 @@ async function installUpdate(update: Update, required: boolean) { return } + if (await invoke('is_flatpak')) { + console.log('[checkVersion] flatpak detected, skipping update') + + await message( + 'A Flatpak version cannot update itself. Please update Rclone UI through your software manager.', + { + title: required ? 'Update Required' : 'Update Available', + kind: 'info', + okLabel: required ? 'Exit' : 'OK', + } + ) + + if (required) { + return await exit(0) + } + + return + } + console.log('[checkVersion] downloading and installing update') await update.downloadAndInstall()