How to Avoid Chmod for distributing set up for the MAC

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

How to Avoid Chmod for distributing set up for the MAC

Post by pkmittal » Tue Mar 29, 2016 4:08 pm

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: How to Avoid Chmod for distributing set up for the MAC

Post by FourthWorld » Tue Mar 29, 2016 4:32 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Re: How to Avoid Chmod for distributing set up for the MAC

Post by pkmittal » Tue Mar 29, 2016 7:24 pm

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?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9823
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: How to Avoid Chmod for distributing set up for the MAC

Post by FourthWorld » Tue Mar 29, 2016 7:57 pm

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. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Mac OS”