To protect the integrity, the code is obfuscated. Though obfuscation comes with a downside, as AVs are unable to verify its content and often mark it as a false positive
This could be solved by digitally signing the code, known as a EV code signature. Think of this as an SSL certificate on an https website proving the website is secure. However this isn't cheap EV Code Signing Certificaten pricing at $410. (Probably other alternatives)
As an alternative I manually contact each popular AV company with a file submission to get the detection removed, but that would be VERY time consuming and would require hundreds of hours possibly.