By "app" I mean an executable that I've installed with a .pkg installer into /usr/local/bin/.
To give you more context - the reason I'm trying to revoke this permission is that it seems that after each update my app loses ability to make screenshots. This is despite the fact that in the Screen Recording preferences it can see it has permissions granted. After I install new version of my app I have to manually go into preferences, remove screen recording permissions and re-add it. Without this manual permissions re-adding the screenshots the app makes are only the background with menu bar.
Maybe you can think of a better way of approaching this (than trying to revoke permission in order to force macos to show screenshot permissions dialog anew)? Can I preserve screen recording permissions after app update?