breautek commented on issue #486: URL: https://github.com/apache/cordova/issues/486#issuecomment-2231834746
> So it's not as if we should be sticking with the can't be done and not great mindset, as we should be aiming for a future where we can cross build all our apps from one OS It's not usually in the control of Cordova. It's often due to the underlying SDKs and/or licensing issues. Like you said, anything Apple is pretty much only supported on Mac OS. > In the end, if code signing exe is the only thing electron builder needs to run in windows mode, there are other tools (just some Google searches) that you can use in Linux to sign the exe? For code-signing windows apps on mac/linux it is possible and electron itself has a [guide](https://www.electron.build/tutorials/code-signing-windows-apps-on-unix) to do so making use of a GPL-3 licensed [tool](https://github.com/mtrojnar/osslsigncode). They are always license concerns surrounding around GPL packages. Apache isn't allowed to redistribute any GPL code or tools. So code-signing on linux is definitely not something that can be supported out of the box. The electron guide also notes using [jsign](https://github.com/ebourg/jsign) instead which is an Apache 2.0 licensed product, so that _could_ be a solution for codesigning window applications from mac and/or linux. In which case, I'd suggest creating a more specific feature request in [cordova-electron](https://github.com/apache/cordova-electron). I'm not familiar with the electron platform myself, so I'm not sure if the solutions are even accessible from within Cordova project. > Which in reality, as far as I know, electron does this approach? I believe so for the electron core itself. This is mostly because compiling electron involves compiling chromium which is a beast of a project. If the electron project depends on any node modules that uses native C++ addon API, unless if they also supply prebuilt binaries, cross-compiling won't be supported. Most node modules that does include native addons do not supply prebuilt binaries because it's significantly easier to distribute the source and have the workstation compile for their own environment against the specific nodejs engine, etc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
