Build for macOS is supported only on macOS, please see https://electron.build/multi-platform-build ,why is that?Not the maintainer, but my own reading between the lines follows.
Code signing of mac applications can only be done on mac, and macOS licensing terms limit virtualization of macOS to apple hardware only so it's unlikely that many users are building against virtualized macOS environments from a Windows host.
It's explained clearly in the docs that this is not possible due to restrictions from Apple. This is not going to be fixed.
Duplicates #2359
Most helpful comment
Not the maintainer, but my own reading between the lines follows.
Code signing of mac applications can only be done on mac, and macOS licensing terms limit virtualization of macOS to apple hardware only so it's unlikely that many users are building against virtualized macOS environments from a Windows host.