You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.5.0
Electron version
33.0.2
Operating system
macOS M1 Pro - Sequioa 15.1.1
Last known working Electron Forge version
7.5.0
Expected behavior
Architecture Targeting Not Working as Expected
Description
When specifying multiple target architectures (x64 and arm64) in the packagerConfig, electron-forge only builds for arm64 and ignores the x64 architecture.
Configuration
I have specified both architectures in my forge config:
constconfig: ExtendedForgeConfig={packagerConfig: {arch: ['x64','arm64'],// ... other config}// ... rest of config}
Expected Behavior
The build process should create packages for both specified architectures (x64 and arm64).
Environment:
electron-forge/cli version: 7.5.0
Node.js version: v20.17.0
Operating System: macOS M1 Pro - Sequioa 15.1.1
Electron version: 33.0.2
Additional Notes:
The logs show that despite specifying both architectures in the config, the packager options only include arch: 'arm64'. This suggests the configuration might not be properly passed through to electron-packager.
Currently, the ForgePackagerOptions type explicitly omits the arch option, making it difficult for users to properly configure multiple target architectures in their Electron Forge configuration.
Considering raising a PR to help users specify builds within forge itself. Features include:
Include arch in the ForgePackagerConfig interface
Add proper validation for arch values
Support both single arch and multiple arch configurations
Pre-flight checklist
Electron Forge version
7.5.0
Electron version
33.0.2
Operating system
macOS M1 Pro - Sequioa 15.1.1
Last known working Electron Forge version
7.5.0
Expected behavior
Architecture Targeting Not Working as Expected
Description
When specifying multiple target architectures (
x64
andarm64
) in thepackagerConfig
, electron-forge only builds forarm64
and ignores thex64
architecture.Configuration
I have specified both architectures in my forge config:
Expected Behavior
The build process should create packages for both specified architectures (
x64
andarm64
).Environment:
Additional Notes:
The logs show that despite specifying both architectures in the config, the packager options only include
arch: 'arm64'
. This suggests the configuration might not be properly passed through to electron-packager.Related Documentation:
Actual behavior
Current Behavior
Based on the logs, electron-forge is only targeting
arm64
:Steps to reproduce
Reproduction Steps:
Additional information
No response
The text was updated successfully, but these errors were encountered: