From b84592ba10048d8e9630f895ddf226eadcd2d65d Mon Sep 17 00:00:00 2001 From: David Wilson Date: Mon, 20 Aug 2018 14:08:54 -0700 Subject: [PATCH] Allow nightly releases to auto-update This change removes a bad version check which prevented nightly releases to be considered for auto-update checks. The fix is to only skip auto-updates when using a build with a version containing `-dev`. Fixes #17885 --- src/main-process/auto-update-manager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main-process/auto-update-manager.coffee b/src/main-process/auto-update-manager.coffee index bc81d425d..74bf2f886 100644 --- a/src/main-process/auto-update-manager.coffee +++ b/src/main-process/auto-update-manager.coffee @@ -94,7 +94,7 @@ class AutoUpdateManager scheduleUpdateCheck: -> # Only schedule update check periodically if running in release version and # and there is no existing scheduled update check. - unless /\w{7}/.test(@version) or @checkForUpdatesIntervalID + unless /-dev/.test(@version) or @checkForUpdatesIntervalID checkForUpdates = => @check(hidePopups: true) fourHours = 1000 * 60 * 60 * 4 @checkForUpdatesIntervalID = setInterval(checkForUpdates, fourHours)