Maintain autoUpdater listeners even if the version is in dev mode.

This is so we can test the auto-updater
This commit is contained in:
probablycorey
2014-07-08 11:41:41 -07:00
parent 832aeffd4f
commit a9feed2e4a

View File

@@ -22,9 +22,6 @@ class AutoUpdateManager
if process.platform is 'win32'
autoUpdater.checkForUpdates = => @checkForUpdatesShim()
# Only released versions should check for updates.
return if /\w{7}/.test(@version)
autoUpdater.setFeedUrl @feedUrl
autoUpdater.on 'checking-for-update', =>
@@ -44,7 +41,9 @@ class AutoUpdateManager
@setState(UPDATE_AVAILABLE_STATE)
@emitUpdateAvailableEvent(@getWindows()...)
@check(hidePopups: true)
# Only released versions should check for updates.
unless /\w{7}/.test(@version)
@check(hidePopups: true)
# Windows doesn't have an auto-updater, so use this method to shim the events.
checkForUpdatesShim: ->