Our security department doesn't trust anyhting hosted on the cloud, so we use the "Create archive" option for the environments to download a ZIP file which we then manually load into AEM DAM. This is cumbersone as it seems the folder name hashes change from time to time and the DAM transforms all folder names to lowercase, so we have to use CRX DE to change them back to the upper case ones or else the AppMeasurement.js can't be found.
So my idea would be to have an additional flag:
"Create AEM content package" with a text field to where the script should be deployed. But keep the "Self-hosted Path to Library" as this might not be the same path as the one of the content package due to ResourceMapping.