Results 1 to 3 of 3
  1. #1
    Unzipping in Mac C++

    Member Since
    Dec 01, 2009
    Posts
    4
    Unzipping in Mac C++
    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++..

  2. #2
    Unzipping in Mac C++
    xstep's Avatar
    Member Since
    Jun 25, 2005
    Location
    On the road
    Posts
    3,231
    Specs:
    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.

  3. #3
    Unzipping in Mac C++
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How would you stop Mac from automatically unzipping files?
    By NewsAndHistory in forum OS X - Apps and Games
    Replies: 12
    Last Post: 02-26-2012, 01:41 PM
  2. Unzipping
    By golferstan in forum Switcher Hangout
    Replies: 5
    Last Post: 06-24-2011, 08:35 PM
  3. Unzipping issues
    By MHMaddo in forum Apple Notebooks
    Replies: 0
    Last Post: 02-11-2010, 06:51 PM
  4. stop unzipping!
    By RazzLee in forum OS X - Apps and Games
    Replies: 3
    Last Post: 05-04-2009, 10:52 AM
  5. Unzipping...
    By eschur21 in forum Switcher Hangout
    Replies: 5
    Last Post: 03-15-2008, 03:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •