Codesigning workflow question

I thought I would ask here to see if anyone does similar or has a brighter idea!

When I build my Mac app for distribution, I build two apps (I use an IDE build script that builds it and moves it to a staging directory). One is for the Mac App Store and has the update code removed (I was rejected once because of that), and the other has the full update mechanism. I end up using App Wrapper on each (which gets clunky as they are the same filename, different directories), so I have to manually handle it each time.

I know the IDE can notarize and codesign, but it seems to be for the main build.

Any thoughts? Thanks Richard

I have 3 versions of my main app. There is a global app.version which governs a lot of in-app behavior but also the build scripts. You can easily have 2 scripts for AppWrapper for your 2 app versions.

Scripting AppWrapper, that is so obvious that I missed it. Off to investigate. Thanks