Skip to content

electron-updater: feature request - custom minimumSystemVersion validation #8682

Closed
@kavsingh

Description

@kavsingh
  • Electron-Builder Version: 24.13.3 (want to update to 25.x, blocked by this issue)
  • Electron-Updater Version: 5.3.0 (want to update to 6.x, blocked by this issue)
  • Node Version: 20.16.0
  • Electron Version: 31.4.0
  • Electron Type (current, beta, nightly): current
  • Target: darwin x64, darwin arm64, win32 x64

Before minimumSystemVersion was read in-app by electron-updater - #8108 - we rolled our own minimumSystemVersion checks since we had a pressing need.

When building our application, we write minimumSystemVersion to the update yaml as the "human readable" product version on macOS, e.g 12.0.0 for Monterey (to match mac.minimumSystemVersion in our electron builder config). The changes in #8108 force minimumSystemVersion to be checked against against os.release. While os.release is a sensible default, unfortunately we cannot switch up to use it in our publish yml files without major disruptions to our user base - app installs already in the wild can end up blocked from updating or erroneously updated.

It would be great to have an option to use a custom validator for minimumSystemVersion, or to disable it and handle minimumSystemVersion ourselves.

Am happy to open a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions