From 7f54d0f01d81e30ab3507e46ca5c999124065715 Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Thu, 7 Sep 2017 23:51:18 +0900 Subject: [PATCH] Add dev-app-update.yml --- src/dev-app-update.yml | 2 ++ src/main.js | 8 +------- 2 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 src/dev-app-update.yml diff --git a/src/dev-app-update.yml b/src/dev-app-update.yml new file mode 100644 index 00000000..3ad0102f --- /dev/null +++ b/src/dev-app-update.yml @@ -0,0 +1,2 @@ +provider: generic +url: 'http://localhost:8081/' diff --git a/src/main.js b/src/main.js index 1c36cae6..ed1980c1 100644 --- a/src/main.js +++ b/src/main.js @@ -652,13 +652,7 @@ app.on('ready', () => { session.defaultSession.setPermissionRequestHandler(permissionRequestHandler(mainWindow, permissionManager)); autoUpdater.initialize(appState, mainWindow); - ipcMain.on('check-for-updates', (isManual) => { - if (global.isDev) { - console.log('Development mode: Skip checking for updates'); - } else { - autoUpdater.checkForUpdates(isManual); - } - }); + ipcMain.on('check-for-updates', autoUpdater.checkForUpdates); mainWindow.once('show', () => { if (autoUpdater.shouldCheckForUpdatesOnStart(appState.updateCheckedDate)) { ipcMain.emit('check-for-updates');