Skip to content

Commit

Permalink
fix: auto update logger (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau authored Jul 1, 2022
1 parent 9e6f869 commit 079be52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ async function main() {
})
}

// Auto updater
updater({ logger })
// Auto updaterg
// @ts-ignore: https://github.com/electron/update-electron-app/pull/96
updater({ logger: { log: (...args) => logger.info(...args) } })

// check if the assets and the bee binary matches the desktop version
const desktopFileVersion = getDesktopVersionFromFile()
Expand Down Expand Up @@ -102,5 +103,6 @@ async function main() {
}

main().catch(e => {
logger.error(e)
dialog.showErrorBox('There was an error in Swarm Desktop', e.message)
})

0 comments on commit 079be52

Please sign in to comment.