File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,38 @@ app.on('ready', function appReady () {
217217 } , 500 )
218218} )
219219
220+ autoUpdater . on ( 'error' , ( err ) => {
221+ console . log ( err )
222+ } )
223+
224+ autoUpdater . on ( 'checking-for-update' , ( ) => {
225+ console . log ( 'autoUpdater: Checking for update...' )
226+ } )
227+
228+ autoUpdater . on ( 'update-available' , ( info ) => {
229+ console . log ( `autoUpdater: Update available!` )
230+ console . log ( info )
231+ } )
232+
233+ autoUpdater . on ( 'update-not-available' , ( info ) => {
234+ console . log ( `autoUpdater: No update available` )
235+ console . log ( info )
236+ } )
237+
238+ autoUpdater . on ( 'update-not-available' , ( info ) => {
239+ console . log ( `autoUpdater: No update available` )
240+ console . log ( info )
241+ } )
242+
243+ autoUpdater . on ( 'download-progress' , ( progress ) => {
244+ console . log ( progress )
245+ } )
246+
247+ autoUpdater . on ( 'update-downloaded' , ( info ) => {
248+ console . log ( `autoUpdater: Update downloaded` )
249+ console . log ( info )
250+ } )
251+
220252app . on ( 'window-all-closed' , function allWindowsClosed ( ) {
221253 if ( process . platform !== 'darwin' ) app . quit ( )
222254} )
You can’t perform that action at this time.
0 commit comments