Currently, Windows builds use the Nullsoft installer NSIS. Some Antivirus malware detectors are prejudiced against nsis because of abuse of that installer by malware writers.
Better would be to use Microsoft Install Shield (MSI) installer format, but currently the msi target of electron-builder fails, due to the WiX toolkit not running under wine on my OpenSUSE 16 system.
It might be possible to execute the Wix code on a docker container that has all the prerequisites just right to have this happen - eg
Here are the primary methods for building WiX on Linux:
Recommended Method: Docker Containers
Using Docker is the most reliable way to build WiX projects on Linux, particularly for CI/CD pipelines. These images contain Wine, .NET, and the WiX toolset.
jkroepke/docker-wixtoolset: A popular Docker image that runs WiX Toolset 5.0.2 on Linux, including necessary extensions like Firewall and UI.
It might also be the case that a docker image with everything set up to run electron-builder is the way to go. Maybe ask AI agent for a suggested dockerfile.