Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
  • Loading branch information
Xstoudi committed Sep 20, 2017
1 parent 9920960 commit 0b7de97
Show file tree
Hide file tree
Showing 3 changed files with 557 additions and 5 deletions.
7 changes: 4 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,17 @@ registerIpc('is-rtl', async (reply, [content, url]) => {
})

// Autoupdate
autoUpdater.setFeedURL(`http://alduin-update.stouder.io:3000/update/${process.platform}/${app.getVersion()}}`)
autoUpdater.setFeedURL(`http://alduin.stouder.io:3000/update/${process.platform}/${app.getVersion()}}`)

registerIpc('update-waiter', async reply => {
return await new Promise(resolve => {
autoUpdater.on('update-downloaded', async event => {
resolve()
})
setInterval(() => {
autoUpdater.checkForUpdates()
}, 1000)
if (process.argv[1] !== '--squirrel-firstrun')
autoUpdater.checkForUpdates();
}, 60000)
})
})

Expand Down
Loading

0 comments on commit 0b7de97

Please sign in to comment.