Closed chudongvip closed 2 years ago
@chudongvip It's not currently possible to make an installer for one platform on a different host platform (i.e. making a Windows installer on Mac), so this is unfortunately expected. You can read more about maker options here: https://www.electronforge.io/config/makers
Similarly, "all" isn't a valid platform option. When making a publisher, platform is set to all options by default, and you only need to specify which ones if you want to isolate for those specifically. For makers, the platform options are ['darwin', 'mas', 'win32', 'linux'].
Hope this helps! Let me know if you have other questions, we can also update the docs to make this more clear if that would be helpful.
Thanks bro. It means I can packing for one platform on a different host platform, and can not make an installer?
Pre-flight checklist
Electron Forge version
6.0.0-beta.65
Electron version
v20.0.2
Operating system
macOS 10.15.7
Last known working Electron Forge version
No response
Expected behavior
I wanna make
windows
andmac
installer via@electron-forge/maker-dmg
and@electron-forge/maker-squirrel
.Actual behavior
mac
installerxx.dmg
windows
installer.Steps to reproduce
1. Set the make platform option to
all
2. exec
npm run make
I hope make the window and mac installer when I exec
npm run make
There will be throw this errors:
3. Set the make platform option to
win32
4. exec
npm run make
Additional information
debug log: