mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 11:46:28 +00:00
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.
This commit is contained in:
@@ -77,6 +77,14 @@ const checkForUpdates = async (force = false): Promise<void> => {
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user