electron-builder parameter mismatch #676

Open
opened 2026-01-29 16:45:44 +00:00 by claunia · 0 comments
Owner

Originally created by @denniskrq on GitHub (Jun 29, 2021).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version: 11.5.1
  • Target: win7x64

Steps to Reproduce:

  1. Execute electronize build /target custom "win7-x64;win64" as suggested in the custom target documentation
  2. Observe the final output for npx electron-builder --config=./bin/electron-builder.json --win64 --x64 -c.electronVersion=11.1.1 to be Unknown argument: win64

The issue seems to be that the Electronize CLI code uses the string after the semicolon in the custom target as the Electron packer platform ("win64" in my case). However, electron-builder does not accept "win64" as a valid build target, only "win" (see: https://www.electron.build/cli). The documentation for custom target should be updated to reflect this.

Originally created by @denniskrq on GitHub (Jun 29, 2021). 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**: 11.5.1 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: win7x64 <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Execute `electronize build /target custom "win7-x64;win64"` as suggested in the custom target documentation 2. Observe the final output for `npx electron-builder --config=./bin/electron-builder.json --win64 --x64 -c.electronVersion=11.1.1` to be `Unknown argument: win64` The issue seems to be that the Electronize CLI code uses the string after the semicolon in the custom target as the Electron packer platform ("win64" in my case). However, `electron-builder` does not accept "win64" as a valid build target, only "win" (see: https://www.electron.build/cli). The documentation for custom target should be updated to reflect this.
claunia added the bug label 2026-01-29 16:45:44 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#676