Description
Pre-flight checklist
- I have read the contribution documentation for this project.
- 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:
const config: 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.
Related Documentation:
Actual behavior
Current Behavior
Based on the logs, electron-forge is only targeting arm64
:
Target Architectures: arm64
Steps to reproduce
Reproduction Steps:
- Set up a forge config with multiple architectures as shown above
- Run the packaging command
- Observe that only arm64 build is created
Additional information
No response