prixe / lindo

Lindo No-Emu allows you to play DOFUS touch on your computer (Windows/Mac/Linux). Fork of the original DTNE by Daniel & Thomas.
https://lindo-app.com
GNU General Public License v3.0
172 stars 97 forks source link

[FIX] Fix appUpdater stay block after checking update #248

Closed Flashacker-Neo closed 2 years ago

zenoxs commented 2 years ago

This is not normal, the app update should be resolve there:

 autoUpdater.on('update-not-available', () => {
        logger.info('appUpdater -> There is no available update')
        resolve()
      })

or

      autoUpdater.on('update-available', (updateInfo: UpdateInfo) => {
        logger.info('appUpdater -> An Update is available v' + updateInfo.version)
        let required = false
        if (typeof updateInfo.releaseNotes === 'string') {
          required = updateInfo.releaseNotes.includes('__update:required__') ?? false
        }
        this._showUpdateDialog(updateInfo.version, required).then((ignored) => {
          // resolve the promise if the update is ignored
          if (ignored) {
            resolve()
          }
        })
      })

This might be related to an other problem if the update is stuck