Skip to content

Autoupdates to lower version with allowPrerelease=true using GitHub releases #1497

@dchest

Description

@dchest
  • Version: 17.1.0
  • electron-updater version: v1.14.1
  • Target: macos

In a test project, I set autoUpdater.allowPrerelease = true and published it as v1.16.9-pre on GitHub as Pre-release. Then published v1.17.0-pre as Pre-release. v1.16.9-pre successfully autoupdated to v1.17.0-pre. Then I published v1.16.10 (no pre here) as Release (not pre-release) and my v1.17.0-pre got updated to it, which was unexpected.

The chain of updates:

v1.16.9-pre → v1.17.0-pre → v1.16.10

I think somewhere the version check is missing or misbehaving.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions