fixup_bundle does not work with shell scripts in the bundle
I tried to use fixup_bundle on a MacOS bundle I created. Besides the docu not being really helpful I run into the following issue:
The main executable is a shell script which sets some environment variables, checks for existence of files, potentially runs an updater first and then starts the application. When calling fixup_bundle on that it fails in get_prerequisites
with ".../install_name_tool: input file: is not a Mach-O file"
It could be fixed in get_prerequisites by returning empty if a shell script/text file is detected or by in fixup_bundle by allowing the main executable in IGNORE_ITEM so it can be skipped