From 80bbd035db5037e58c3c1d50df00c8613cf87d20 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Mon, 5 Aug 2013 12:34:43 -0700 Subject: [PATCH] Do not download update if Atom is running in dev mode --- src/atom-application.coffee | 2 ++ src/main.coffee | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atom-application.coffee b/src/atom-application.coffee index 520389efb..26e20478d 100644 --- a/src/atom-application.coffee +++ b/src/atom-application.coffee @@ -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() diff --git a/src/main.coffee b/src/main.coffee index 69f1c8115..6da4b91de 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -52,7 +52,6 @@ setupCrashReporter = -> setupAutoUpdater = -> autoUpdater.setFeedUrl 'https://speakeasy.githubapp.com/apps/27/appcast.xml' - autoUpdater.setAutomaticallyDownloadsUpdates true parseCommandLine = -> version = app.getVersion()