Codesigning a MacOS packaged app

Does anyone have a relatively straight-forward step-by-step walk-through for codesigning a UE4 packaged app on MacOS? I have a Mac Developer account and (I think) proper certificates, but getting a packaged UE4 app signed and notarized with Apple is very very frustrating!

I know Apple keeps throwing up roadblocks, but having an app run without “[app name] can’t be opened because it is from an unidentified developer.” seems like a pretty basic request. I’m not even considering the MacStore at this point, just getting it properly signed.

Thanks for any help/suggestions!