mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Do not download update if Atom is running in dev mode
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -52,7 +52,6 @@ setupCrashReporter = ->
|
||||
|
||||
setupAutoUpdater = ->
|
||||
autoUpdater.setFeedUrl 'https://speakeasy.githubapp.com/apps/27/appcast.xml'
|
||||
autoUpdater.setAutomaticallyDownloadsUpdates true
|
||||
|
||||
parseCommandLine = ->
|
||||
version = app.getVersion()
|
||||
|
||||
Reference in New Issue
Block a user