Don't check for updates in the MAS build

// FREEBIE
This commit is contained in:
lilia 2017-04-26 13:13:41 -07:00 committed by Scott Nonnenberg
parent 76cd650577
commit b66a887184
No known key found for this signature in database
GPG key ID: A4931C09644C654B

View file

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