Skip to content

Commit e6136ac

Browse files
Auto Updater Fix
1 parent 55cf0d8 commit e6136ac

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/autoUpdater.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const quitUpdateButton_el = document.getElementById('quitUpdateButton');
44
const updateControlDiv_el = document.getElementById('updateControlDiv');
55

66
autoUpdater.autoUpdaterCallback((status) => {
7+
console.log(status);
78
if (status === 'Update Available'){
89
updateOverlay_el.style.display = 'flex';
910
if (selectUserTypeOverlay_el.style.display !== 'none'){

src/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
5465
autoUpdater.on('checking-for-update', () => {
5566
mainWindow.webContents.send('auto-updater-callback', 'Checking for Update');
5667
});

0 commit comments

Comments
 (0)