File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const quitUpdateButton_el = document.getElementById('quitUpdateButton');
44const updateControlDiv_el = document . getElementById ( 'updateControlDiv' ) ;
55
66autoUpdater . autoUpdaterCallback ( ( status ) => {
7+ console . log ( status ) ;
78 if ( status === 'Update Available' ) {
89 updateOverlay_el . style . display = 'flex' ;
910 if ( selectUserTypeOverlay_el . style . display !== 'none' ) {
Original file line number Diff line number Diff line change @@ -51,6 +51,17 @@ app.on('activate', () => {
5151 }
5252} ) ;
5353
54+ mainWindow . once ( 'ready-to-show' , ( ) => {
55+ if ( app . isPackaged ) {
56+ autoUpdater . setFeedURL ( {
57+ provider : 'github' ,
58+ owner : 'programmingKyle' ,
59+ repo : 'clocker' ,
60+ } ) ;
61+ autoUpdater . checkForUpdatesAndNotify ( ) ;
62+ }
63+ } ) ;
64+
5465autoUpdater . on ( 'checking-for-update' , ( ) => {
5566 mainWindow . webContents . send ( 'auto-updater-callback' , 'Checking for Update' ) ;
5667} ) ;
You can’t perform that action at this time.
0 commit comments