Skip to content

Commit 0b7de97

Browse files
committed
Work
1 parent 9920960 commit 0b7de97

3 files changed

Lines changed: 557 additions & 5 deletions

File tree

‎main.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ registerIpc('is-rtl', async (reply, [content, url]) => {
8686
})
8787

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

9191
registerIpc('update-waiter', async reply => {
9292
return await new Promise(resolve => {
9393
autoUpdater.on('update-downloaded', async event => {
9494
resolve()
9595
})
9696
setInterval(() => {
97-
autoUpdater.checkForUpdates()
98-
}, 1000)
97+
if (process.argv[1] !== '--squirrel-firstrun')
98+
autoUpdater.checkForUpdates();
99+
}, 60000)
99100
})
100101
})
101102

0 commit comments

Comments
 (0)