I have an application bundle that I need to convert to a flattened package. In my case, the application is a simple bash script that has been bundled into an application using Platypus. To flatten the bundle, I used the following command on a machine running macOS 10.15.3...
pkgutil --flatten /path/to/application_bundle /path/to/flattened_package
When then attempting to run the flattened package, I receive the error, "You can't open the application because it is not supported on the type of Mac." However, the bundled app runs without any issue. Any ideas on how to convert a bundled app to a flattened app that will run?