Page 1 of 1
How to Avoid Chmod for distributing set up for the MAC
Posted: Tue Mar 29, 2016 4:08 pm
by pkmittal
Hi, I am using Windows 10 and Live Code 7.1.3 and creating the set up for the mac.
Set up does not work on the MAC. To make it work, I have to do
chmod +x SomeApp.app/contents/macos/
Is there a way so that It can be avoided as we can not ask user to launch this command to make the app work.
Thanks
pkm
Re: How to Avoid Chmod for distributing set up for the MAC
Posted: Tue Mar 29, 2016 4:32 pm
by FourthWorld
It may be possible to Zip the standalone before transferring it to a Mac to preserver the exec bit, but it may also be that my memory is simply faulty there. The Windows file system has no exec bit, so routines that copy from it to a Unix-oriented file system like HFS+ often (if not always) fail to transfer that metadata.
Try Zipping, and if that doesn't work you may want to write a shell script on your Mac to automate that for smoother builds.
Re: How to Avoid Chmod for distributing set up for the MAC
Posted: Tue Mar 29, 2016 7:24 pm
by pkmittal
I am using WIN RAR to create the rar file and transferring it to Mac but I have to use chmod +x to make it work... Any suggestion to fix this?
Re: How to Avoid Chmod for distributing set up for the MAC
Posted: Tue Mar 29, 2016 7:57 pm
by FourthWorld
It may be that RAR doesn't support non-Win-native file system metadata. Try Zip, and if that doesn't work you may need to write a script on Mac to automate it.
When Microsoft ditches their kernel for BSD, Linux, or Unix all this will go away. But until then differences between file systems will remain an issue requiring us to be crafty.
