That said, it's not quite as bad as your link. The secret is to right click or control click on the app, and choose Open. The warning dialog will have an Open button to bypass the Security pref pane. (Though maybe that doesn't work for you since you're making a CLI tool?)
I agree that the $100 fee in no way guarantees proper identity verification has been done. I also see plenty of other unnecessary barriers the fee creates, I just don't know what an obvious alternative would be.
sudo spctl --master-disable
That should get rid of the prompts. Termination Reason: Namespace CODESIGNING, Code 0x1
I can (re)sign the application with: codesign --force --deep --sign - /path/to/The.app
which often resolves the issue.but what's the difference between the error that causes the friendly warning, and the error that cases the stack trace/exception? Is this the difference between a lack of code signature and a failed check?
Not really onerous. However, you do have to use a terminal command to turn off Gatekeeper.
https://www.imore.com/how-open-apps-anywhere-macos-catalina-...
Windows 10 SmartScreen is just as deliberate and just as scary.
You absolutely have to pay for an extended validation code signing certificate, or your installer will be blocked by default.
Third parties charge more for that code signing certificate than Apple does for a developer account.
If anything, the problem is that even software with an EV certificate should be subject to the warning (like how SmartScreen worked in the past).
If you check to see if the developer's signing certificate has been revoked before running their software, you can be reasonably sure that doing so is safe.
Apple's developer program is cheaper than the extended validation code signing certificate you need to develop and sign software use on Windows without running into a block from SmartScreen.
Apple's developer program is not only cheaper, it allows for functional code signing that completely sidesteps their app store.
I am not sure what you mean regarding your point about sidestepping Apple's app store. Code signing can obviously be done on either platform without any app stores.
Gatekeeper has no such caveat.
Tell me its unsigned and the dangers, but then give me the option to run it. Stop treating me like some dolt.
Right now, you have to really jump through hoops:
https://github.com/mikechambers/dcli/wiki/Running-dcli-tools...
(this is for a open source project I run)