If I want to copy a shell-script or binary (helper) into /usr/local/bin will I be able to do so and distribute on App store?
If that's not possible, how do I access the path of the application folder for use within a shell script in order to locate a bundled binary inside the app bundle.
What do I mean:
My.app
...something...
my-mach-o-binary
...something...
my-bash-script.sh
I want my-bash-script to call my-mach-o-binary. How can I get the path of my-mach-o-binary to use in my-bash-script?
If I am able to copy the binary to /usr/local/bin it will be easy to locate from the bash script...but if not...I cannot assume the My.app is running within /Applications
it could be anywhere.