How to deploy an app from a DMG so that it does not need dragging to the Applications folder
Prior to Catalina our code-signed & notarized, downloadable (not from Apple store) macOS 64-bit app, distributed in a DMG with supporting folders of data, ran from Finder (by double-clicking) with no problems (all files extracted from the DMG and copied onto the file system). On Catalina and above, the app needs to be dragged to the Applications folder and copied back to the location on the file system it was extracted to in order to run properly, otherwise the app window opens but nothing is displayed and it fails to run further than a blank app window.
Without having been dragged to and copied back from the Applications folder, if the app is invoked from the command-line (not using open but typing the path to the executable in Contents/MacOS) it will run perfectly well to.
I have tried any number of entitlement combinations to try to make this work correctly on macOS 10.15+, all to no avail. It may be worth noting that, this is not a native app, but a cross-platform Python application bundled using PyInstaller (4.10), however, as it works pre 10.15, I'm not sure whether this is entirely relevant.
Has anyone come across a similar issue (native or not) and found a way to circumvent this behaviour, or is it an expected part of the security model post 10.15?