Don't check for updates in the MAS build

// FREEBIE
pull/749/head
lilia 8 years ago committed by Scott Nonnenberg
parent 76cd650577
commit b66a887184
No known key found for this signature in database
GPG Key ID: A4931C09644C654B

@ -148,7 +148,7 @@ function createWindow () {
// Some APIs can only be used after this event occurs. // Some APIs can only be used after this event occurs.
app.on('ready', function() { app.on('ready', function() {
console.log('app ready'); console.log('app ready');
if (!config.get('disableAutoUpdate')) { if (!process.mas && !config.get('disableAutoUpdate')) {
autoUpdater.addListener('update-downloaded', function() { autoUpdater.addListener('update-downloaded', function() {
autoUpdater.quitAndInstall() autoUpdater.quitAndInstall()
}); });

Loading…
Cancel
Save