flatpak update check

This commit is contained in:
FTCHD
2026-07-11 21:25:49 +03:00
parent 234fa93e9a
commit 7e98a78b6d
+19
View File
@@ -634,6 +634,25 @@ async function installUpdate(update: Update, required: boolean) {
return
}
if (await invoke<boolean>('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()