Add dev-app-update.yml
This commit is contained in:
2
src/dev-app-update.yml
Normal file
2
src/dev-app-update.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
provider: generic
|
||||
url: 'http://localhost:8081/'
|
@@ -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');
|
||||
|
Reference in New Issue
Block a user