Skip to content

Commit

Permalink
remove duplicate update check
Browse files Browse the repository at this point in the history
  • Loading branch information
horacioh committed Dec 7, 2024
1 parent 6be2834 commit 14aaa89
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions frontend/apps/desktop/src/auto-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ export function defaultCheckForUpdates() {
// url: `https://seed-demo.s3.eu-west-2.amazonaws.com/dev/latest/RELEASES.json`,
// })

updateElectronApp({
updateSource: {
type: UpdateSourceType.StaticStorage,
baseUrl: `https://seed-demo.s3.eu-west-2.amazonaws.com/dev/${process.platform}/${process.arch}`,
},
})

log.debug(`== FEED URL == ${autoUpdater.getFeedURL()}`)

log.debug('[MAIN][AUTO-UPDATE]: checking for Updates')
// ipcMain.emit(ipcMainEvents.CHECK_FOR_UPDATES_START)
try {
autoUpdater.checkForUpdates()
// autoUpdater.checkForUpdates()
updateElectronApp({
updateSource: {
type: UpdateSourceType.StaticStorage,
baseUrl: `https://seed-demo.s3.eu-west-2.amazonaws.com/dev/${process.platform}/${process.arch}`,
},
})
} catch (error) {}
// ipcMain.emit(ipcMainEvents.CHECK_FOR_UPDATES_END)
log.debug('[MAIN][AUTO-UPDATE]: checking for Updates END')
Expand Down

0 comments on commit 14aaa89

Please sign in to comment.