How to set the correct execution privileges for a created File


#1

Hello Folks,

I built a little Installer that simply copies my executable (which is embedded into the installers binary as ZIP file binary data) into the Application folder (and the AU / VST plugin files in their folders)-

However this messes up the privileges of the standalone executable, so I get a 'Permission denied' error until I throw this thing at the terminal:

sudo chmod +x '/Applications/App.app/Contents/MacOS/App'

Sorry for the noobness, but is there a way to do this automatically (by which I mean as a step within the JUCE made installer)? Or do I have to move the standalone app out of the installer and have the user drag it in their Application folder themselves?