A zipped bundle app: no executable after unzipping

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

A zipped bundle app: no executable after unzipping

Post by giovanni_c » Sun Apr 28, 2013 8:02 am

Hi all
I've a little question for you LC forumers!
Here is my problem: I've a zipped ".app" bundle that I want to extract and execute.
Everything goes well with the extraction as my ".app" bundle file is correctly extracted but when I try to launch it... it doesn't start.
Trying to extract it with system tools it extracts and starts correctly.
So analyzing the bundle after Livecode extraction comparing with the other I can see that the executable file "myapp.app/Contents/MacOS/myapp" has no execution rights. Why this happens? Where am I wrong?!

Thank you for your replies!

CoffeeCone
Posts: 64
Joined: Fri Apr 26, 2013 8:38 am

Re: A zipped bundle app: no executable after unzipping

Post by CoffeeCone » Sun Apr 28, 2013 8:29 am

giovanni_c wrote:Hi all
I've a little question for you LC forumers!
Here is my problem: I've a zipped ".app" bundle that I want to extract and execute.
Everything goes well with the extraction as my ".app" bundle file is correctly extracted but when I try to launch it... it doesn't start.
Trying to extract it with system tools it extracts and starts correctly.
So analyzing the bundle after Livecode extraction comparing with the other I can see that the executable file "myapp.app/Contents/MacOS/myapp" has no execution rights. Why this happens? Where am I wrong?!

Thank you for your replies!

What did you use to compress the app?
Learning LiveCode, one step at a time.

giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Re: A zipped bundle app: no executable after unzipping

Post by giovanni_c » Sun Apr 28, 2013 9:34 am

CoffeeCone wrote:What did you use to compress the app?
Hi CoffeeCone
Simply compressed with Mac compress utility.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: A zipped bundle app: no executable after unzipping

Post by mwieder » Mon Apr 29, 2013 9:26 pm

What's "LiveCode extraction"? Are you trying to extract and launch an app from a compressed archive at runtime from a LiveCode script? If so, how are you doing this? Are you shelling out to the OS or are you using LC's builtin zip or decompress functions?

giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Re: A zipped bundle app: no executable after unzipping

Post by giovanni_c » Mon Apr 29, 2013 10:00 pm

mwieder wrote:Are you trying to extract and launch an app from a compressed archive
Yes, I'm trying to do exactly this!
I've a "myapp.zip" containing "myapp.app". When I extract the zip using the built-in LC extracion tools the file "myapp" inside the bundle has no more the "x" attribute.

Anyway I've solved my probs in another way using LC built-in zip function in "Win32" platform, "ditto" command line on "MacOS" and "unzip" under "Linux".

But I think Livecode should preserve the right rights (ops... sorry!) when unzipping...

Thank you for your replies guys!

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: A zipped bundle app: no executable after unzipping

Post by mwieder » Mon Apr 29, 2013 10:47 pm

Aha! Yes, I think you've come across a long-standing bug in the internal libraries regarding the executable bit. Hopefully with the open-source rework this can get fixed up. I do the same thing you do, shelling out to the OS to do zip functions. You'll also find that the internal routines can't handle folders.

But stay tuned - there's lot of fun to come in the next few months.

Post Reply