From 63e74867224aea034ffd612e9af39ba3ffc1a715 Mon Sep 17 00:00:00 2001 From: Pulse Monitor Date: Wed, 27 Aug 2025 18:47:10 +0000 Subject: [PATCH] fix: skip update checks for development builds Development builds (containing -dirty or git commit hashes) will no longer check for updates automatically to avoid confusion during development. Manual checks can still be forced for testing. --- frontend-modern/src/stores/updates.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend-modern/src/stores/updates.ts b/frontend-modern/src/stores/updates.ts index 963c54b7c..fc681de8b 100644 --- a/frontend-modern/src/stores/updates.ts +++ b/frontend-modern/src/stores/updates.ts @@ -77,6 +77,14 @@ const checkForUpdates = async (force = false): Promise => { setUpdateAvailable(false); return; } + + // Skip dev builds unless forcing (contains -dirty or commit hash after version) + const isDirtyBuild = version.version.includes('-dirty') || + /v\d+\.\d+\.\d+.*-g[0-9a-f]+/.test(version.version); + if (isDirtyBuild && !force) { + setUpdateAvailable(false); + return; + } // Get the saved update channel from system settings const info = await UpdatesAPI.checkForUpdates();