@@ -15,23 +15,15 @@ var iconIdle = path.join(__dirname, 'images', 'tray-idleTemplate.png');
1515var iconActive = path . join ( __dirname , 'images' , 'tray-active.png' ) ;
1616
1717var ghReleasesOptions = {
18- repo : 'ekonstantinidis/testify ' ,
18+ repo : 'ekonstantinidis/gitify ' ,
1919 currentVersion : app . getVersion ( )
2020} ;
2121
2222var update = new ghReleases ( ghReleasesOptions , function ( autoUpdater ) {
23- // Auto updater event listener
24- console . log ( '.......' ) ;
25- console . log ( '.......' ) ;
26- console . log ( app . getVersion ( ) ) ;
27- console . log ( '.......' ) ;
28- console . log ( '.......' ) ;
29- // autoUpdater.checkForUpdates();
30-
3123 autoUpdater
32- // .on('checking-for-update', function() {
33- // console.log('Checking for update');
34- // })
24+ . on ( 'checking-for-update' , function ( ) {
25+ console . log ( 'Checking for update' ) ;
26+ } )
3527 . on ( 'update-downloaded' , function ( e , rNotes , rName , rDate , uUrl , quitAndUpdate ) {
3628 // Install the update
3729 console . log ( 'Update Downloaded...' ) ;
@@ -41,9 +33,13 @@ var update = new ghReleases(ghReleasesOptions, function (autoUpdater) {
4133
4234// Check for updates
4335update . check ( function ( err , status ) {
44- console . log ( 'ERR: ' + err + '. STATUS: ' + status ) ;
36+ if ( err ) {
37+ console . log ( 'ERRORED.' ) ;
38+ console . log ( 'ERR: ' + err + '. STATUS: ' + status ) ;
39+ }
4540
4641 if ( ! err && status ) {
42+ console . log ( 'There is an update!' ) ;
4743 update . download ( ) ;
4844 }
4945} ) ;
0 commit comments