Skip to content

Commit b235590

Browse files
author
Emmanouil Konstantinidis
committed
Fix repo url and clean up
1 parent 4030d66 commit b235590

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

main.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,15 @@ var iconIdle = path.join(__dirname, 'images', 'tray-idleTemplate.png');
1515
var iconActive = path.join(__dirname, 'images', 'tray-active.png');
1616

1717
var ghReleasesOptions = {
18-
repo: 'ekonstantinidis/testify',
18+
repo: 'ekonstantinidis/gitify',
1919
currentVersion: app.getVersion()
2020
};
2121

2222
var 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
4335
update.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

Comments
 (0)