Skip to content

Commit

Permalink
feat: fix error on Update Enable Auto update #40
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Aug 14, 2024
1 parent db89495 commit b7dbc82
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions electron-app/ecoindex-app/src/main/Updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ class Updater {
// https://github.com/cnumr/lighthouse-plugin-ecoindex/releases.atom
updaterLog.debug(`IS_PROD`, IS_PROD)
if (IS_PROD) {
// const feedUrl = `https://update.electronjs.org/cnumr/lighthouse-plugin-ecoindex/${process.platform}-${process.arch}/${app.getVersion()}`
const feedUrl = `https://update.electronjs.org/cnumr/lighthouse-plugin-ecoindex/${process.platform}-x64/${app.getVersion()}`
let _arch = ''
if (os.platform() === 'darwin') {
_arch = 'x64'
} else _arch = os.arch()
const feedUrl = `https://update.electronjs.org/cnumr/lighthouse-plugin-ecoindex/${process.platform}-${_arch}/${app.getVersion()}`
// const feedUrl = `https://update.electronjs.org/cnumr/lighthouse-plugin-ecoindex/${process.platform}-${os.arch()}/${app.getVersion()}`
const userAgent = format(
'%s/%s (%s: %s)',
pkg.productName,
pkg.version,
os.platform(),
'x64'
// os.arch()
_arch
)

updaterLog.log('feedUrl', feedUrl)
Expand Down

0 comments on commit b7dbc82

Please sign in to comment.