Skip to content

18.2.0 and above don't support non-numeric fourth version component #1714

Open
@gtritchie

Description

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Packager Version:
    • The problem started with 18.2.0 (and 18.3.0, 18.3.1, 18.3.2))
  • Electron Version:
    • I've used 28, 29, 30 and hit the problem but don't think the Electron version matters here
  • Operating System:
    • Windows-specific (I'm using 11, our failing builds happen on Server 2019)
  • Last Known Working Electron Packager version::
    • 18.1.3

Expected Behavior

Prior to 18.2.0, a version string (i.e. in package.json "version") of the form "2024.07.0-hourly+56.pro14" was accepted by electron-packager during the packaging process on Windows. We've been using this format for several years. It continues working for Mac and Linux.

Actual Behavior

Starting with 18.2.0 (presumably due to this PR) an error occurs during packaging: Incorrectly formatted version string: "2024.07.0-hourly+56.pro14". Component "pro14" could not be parsed as an integer

To Reproduce

npm i
npm run package

Gives the error Incorrectly formatted version string: "2024.07.0-hourly+56.pro14". Component "pro14" could not be parsed as an integer.

Edit package.json and change @electron/packager version to 18.1.3 and:

npm i
npm run package

Succeeds.

Additional Information

NA

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions