Which executable to run from /Contents/MacOS?
How does MacOS determine which executable to run from within the /Contents/MacOS folder inside an /Applications/application.app ?
I am trying to distribute the application jalview within my organisation (using Munki).
When the application is installed directly by dragging from the dmg it runs the correct executable when the icon is clicked.
(/Applications/Jalview.app/Contents/MacOS/jalview)
but when I package the application via Munki or convert it into an installation package the result always runs the wrong executable when the icon is clicked.
(/Applications/Jalview.app/Contents/MacOS/JavaApplicationStub)
I'm guessing there must be away to fix which executable should be run?