Development Uses Different Electron Version than Release #821

Closed
opened 2026-01-29 16:49:33 +00:00 by claunia · 1 comment
Owner

Originally created by @Silvenga on GitHub (Aug 1, 2022).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version: 13.5.1
  • Target: Windows

Development builds e.g. via electronize start install Electron ^13.1.5 which causes NPM to automatically upgrade to 13.6.9 (see the ^) which differs from the hardcoded version used for electron-builder (13.1.5). This can cause runtime behavior changes and hair loss.


Due to the lack of validation on the side of electron-builder, a workaround looks like:

electronize build /target win /electron-params "-c.electronVersion=13.6.9"

Which results in the command:

npx electron-builder --config=./bin/electron-builder.json --win --x64 -c.electronVersion=13.1.5 -c.electronVersion=13.6.9

Which results in version 13.6.9 being used.

downloaded      url=https://github.com/electron/electron/releases/download/v13.6.9/electron-v13.6.9-win32-x64.zip duration=3.716s

Of course, here be dragons. But if you need a slightly newer version of Electron...

Originally created by @Silvenga on GitHub (Aug 1, 2022). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 13.5.1 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: Windows <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Development builds e.g. via `electronize start` install Electron `^13.1.5` which causes NPM to automatically upgrade to `13.6.9` (see the `^`) which differs from the hardcoded version used for `electron-builder` (`13.1.5`). This can cause runtime behavior changes and hair loss. --- Due to the lack of validation on the side of `electron-builder`, a workaround looks like: ``` electronize build /target win /electron-params "-c.electronVersion=13.6.9" ``` Which results in the command: ``` npx electron-builder --config=./bin/electron-builder.json --win --x64 -c.electronVersion=13.1.5 -c.electronVersion=13.6.9 ``` Which results in version `13.6.9` being used. ``` downloaded url=https://github.com/electron/electron/releases/download/v13.6.9/electron-v13.6.9-win32-x64.zip duration=3.716s ``` Of course, here be dragons. But if you need a slightly newer version of Electron...
claunia added the bug label 2026-01-29 16:49:33 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (Mar 28, 2023):

🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉

With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!

@GregorBiswanger commented on GitHub (Mar 28, 2023): 🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉 With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#821