Thread: Unzipping in Mac C++
12-10-2009, 03:19 AM #1
Unzipping in Mac C++
- Member Since
- Dec 01, 2009
Hi again. I have a cross platform application, where i'm unzipping a zip folder.
in the folder i have a xxx.app. Inside xxx.app/contents/macos/ there is another file xxx, which has no extension. originally, it should be a linux executble. but after i unzip the file through my program using a opensource sdk, it extracts as a plain text file (because there is no extention) and the app cannot be run already!.
Do you know any way around this ?
I also tried extracting using 'unzip' in the terminal, and i get the same problem.. the only method that works is extracting with the "Archive Utility" but i need to be able to extract the folder programmatically in c++..
12-10-2009, 02:44 PM #2
- Member Since
- Jun 25, 2005
- On the road
- 2011 MBP, i7, 16GB RAM, MBP 2.16Ghz Core Duo, 2GB ram, Dual 867Mhz MDD, 1.75GB ram, ATI 9800 Pro vid
Perhaps the Zip format has bits to notify the extracting program what permissions need to be applied to each extracted file. You'll need to look into Zip structure. Admittedlly I would have then expected unzip to figure that out.
Maybe 'Archive Utility' is taking liberties by analyzing the extraction when it is a .app container folder. This would seem risky to me.CameraTime - Time lapse photography for novice and advanced users.
When asking questions, post the version of your software. You'll receive better answers.
Please post your results to the thread as it is good feedback.
12-10-2009, 02:55 PM #3
whether something is executable in linux is a matter of perms, not extensions (same thing in OS X to be honest)mike
This machine kills fascists
Got # ? phear the command line!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By NewsAndHistory in forum OS X - Apps and GamesReplies: 12Last Post: 02-26-2012, 01:41 PM
By golferstan in forum Switcher HangoutReplies: 5Last Post: 06-24-2011, 08:35 PM
By MHMaddo in forum Apple NotebooksReplies: 0Last Post: 02-11-2010, 06:51 PM
By RazzLee in forum OS X - Apps and GamesReplies: 3Last Post: 05-04-2009, 10:52 AM
By eschur21 in forum Switcher HangoutReplies: 5Last Post: 03-15-2008, 03:52 AM