From 1d343ac07130cd193191993cb5746c32ec290f0b Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Sun, 15 Mar 2026 09:52:09 -0700 Subject: [PATCH] Treat missing/draft releases as up-to-date instead of showing error --- tauri/src/platform/updater.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tauri/src/platform/updater.ts b/tauri/src/platform/updater.ts index 24a1b6b8..72fffe27 100644 --- a/tauri/src/platform/updater.ts +++ b/tauri/src/platform/updater.ts @@ -64,13 +64,17 @@ class TauriUpdater implements PlatformUpdater { } this.notifySubscribers(); } catch (error) { + const message = error instanceof Error ? error.message : String(error); + // Tauri updater throws on 404 / no published release / network errors. + // Treat "no update available" style errors as up-to-date, not failures. + const isNoUpdate = /404|not found|no update|up.to.date/i.test(message); this.status = { checking: false, available: false, downloading: false, installing: false, readyToInstall: false, - error: error instanceof Error ? error.message : 'Failed to check for updates', + error: isNoUpdate ? undefined : message, }; this.notifySubscribers(); }