* Run an immediate update check on application launch.
()
| 119 | * Run an immediate update check on application launch. |
| 120 | */ |
| 121 | private async performInitialCheck() { |
| 122 | try { |
| 123 | logInfo('app updater', 'Checking for updates on application launch'); |
| 124 | await autoUpdater.checkForUpdatesAndNotify(); |
| 125 | } catch (err) { |
| 126 | logError('auto updater', 'Initial check failed', toError(err)); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Schedule recurring update checks. |