diff options
author | 2021-07-18 13:51:51 +0530 | |
---|---|---|
committer | 2021-07-18 13:51:51 +0530 | |
commit | 4fc60686403d380c8f3d93a9dd98b9f7d6b9d6de (patch) | |
tree | 35577dc6e4e1ade94c7829f0f449e02644fd9c73 /src | |
parent | Fixed issue with error hiding version bump. (diff) | |
download | ferdium-app-4fc60686403d380c8f3d93a9dd98b9f7d6b9d6de.tar.gz ferdium-app-4fc60686403d380c8f3d93a9dd98b9f7d6b9d6de.tar.zst ferdium-app-4fc60686403d380c8f3d93a9dd98b9f7d6b9d6de.zip |
Added debug logs for auto-updater. [skip ci]
Diffstat (limited to 'src')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.js | 3 | ||||
-rw-r--r-- | src/stores/AppStore.js | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js index 603049c4e..5305d5618 100644 --- a/src/electron/ipc-api/autoUpdate.js +++ b/src/electron/ipc-api/autoUpdate.js | |||
@@ -28,9 +28,10 @@ export default (params) => { | |||
28 | } | 28 | } |
29 | 29 | ||
30 | if (args.action === 'check') { | 30 | if (args.action === 'check') { |
31 | debug('checking for update'); | ||
31 | autoUpdater.checkForUpdates(); | 32 | autoUpdater.checkForUpdates(); |
32 | } else if (args.action === 'install') { | 33 | } else if (args.action === 'install') { |
33 | debug('install update'); | 34 | debug('installing update'); |
34 | autoUpdater.quitAndInstall(); | 35 | autoUpdater.quitAndInstall(); |
35 | // we need to send a quit event | 36 | // we need to send a quit event |
36 | setTimeout(() => { | 37 | setTimeout(() => { |
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index ac6ca6d2d..bbb5e6305 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -180,7 +180,7 @@ export default class AppStore extends Store { | |||
180 | } | 180 | } |
181 | }); | 181 | }); |
182 | 182 | ||
183 | // Handle deep linking (franz://) | 183 | // Handle deep linking (ferdi://) |
184 | ipcRenderer.on('navigateFromDeepLink', (event, data) => { | 184 | ipcRenderer.on('navigateFromDeepLink', (event, data) => { |
185 | debug('Navigate from deep link', data); | 185 | debug('Navigate from deep link', data); |
186 | let { | 186 | let { |
@@ -389,6 +389,7 @@ export default class AppStore extends Store { | |||
389 | 389 | ||
390 | @action _checkForUpdates() { | 390 | @action _checkForUpdates() { |
391 | if (this.isOnline) { | 391 | if (this.isOnline) { |
392 | debug('_checkForUpdates: sending event to autoUpdate:check'); | ||
392 | this.updateStatus = this.updateStatusTypes.CHECKING; | 393 | this.updateStatus = this.updateStatusTypes.CHECKING; |
393 | ipcRenderer.send('autoUpdate', { | 394 | ipcRenderer.send('autoUpdate', { |
394 | action: 'check', | 395 | action: 'check', |
@@ -399,6 +400,7 @@ export default class AppStore extends Store { | |||
399 | } | 400 | } |
400 | 401 | ||
401 | @action _installUpdate() { | 402 | @action _installUpdate() { |
403 | debug('_installUpdate: sending event to autoUpdate:install'); | ||
402 | ipcRenderer.send('autoUpdate', { | 404 | ipcRenderer.send('autoUpdate', { |
403 | action: 'install', | 405 | action: 'install', |
404 | }); | 406 | }); |