Do not download update if Atom is running in dev mode

This commit is contained in:
probablycorey
2013-08-05 12:34:43 -07:00
parent 0397df2f4d
commit 80bbd035db
2 changed files with 2 additions and 1 deletions

View File

@@ -80,8 +80,10 @@ class AtomApplication
app.commandLine.appendSwitch 'js-flags', '--harmony_collections'
checkForUpdates: ->
console.log "DO NOT AUTO-UPDATE?", /\w{7}/.test(@version), @version
return if /\w{7}/.test @version # Don't check for updates if version is a short sha
autoUpdater.setAutomaticallyDownloadsUpdates true
autoUpdater.setAutomaticallyChecksForUpdates true
autoUpdater.checkForUpdatesInBackground()

View File

@@ -52,7 +52,6 @@ setupCrashReporter = ->
setupAutoUpdater = ->
autoUpdater.setFeedUrl 'https://speakeasy.githubapp.com/apps/27/appcast.xml'
autoUpdater.setAutomaticallyDownloadsUpdates true
parseCommandLine = ->
version = app.getVersion()