GearHack

: :

Add Comment | Related Links | TrackBack
Related Content

What causes this?

Know what causes this ZIP problem? Know of a way to get around it? I want to automate the process of creating ZIP files and not having to manually point-and-click . . .

http://www.cynosurex.com/Forums/DisplayComments.php?file=Mac . . .

Chieh Cheng
Tue, 06 Jan 2009 02:15:17 +0000

how are you creating the zips?

charlie
Tue, 06 Jan 2009 02:21:53 +0000

zip "MagicMenu" *.app
zip "MagicMenu" *.txt

Chieh Cheng
Tue, 06 Jan 2009 02:22:30 +0000

zip app/version?

charlie
Tue, 06 Jan 2009 02:31:05 +0000

Info-ZIP 2.32
It's bundled with Mac OS X 10.5.4.

Chieh Cheng
Tue, 06 Jan 2009 02:35:14 +0000

i presume you're using Info-ZIP.

do a "unzip -l" with the 2 archives and see if the one created by the GUI has more files? ie hidden ones that start with a period.

if it's indeed missing the hidden files, the -S parameter should help.

gnowk
Tue, 06 Jan 2009 08:05:39 +0000

well.. macintel got rid of classic support. i would suggest first upgrading to info-zip 3.0 ( http://info-zip.org/Zip.html ) and trying with that first. at minimum,download and recompile some version of it. i'm sure the gui one you are using isn't using the same executables but a different compiled exec.

charlie
Tue, 06 Jan 2009 08:32:06 +0000

Ok. Here is the difference between the two ZIP files.

The ZIP File That Does Not Work

  Length     Date   Time    Name
-------- ---- ---- ----
250 12-26-08 23:44 README.TXT
13780 12-26-08 23:18 MagicMenu Off.app
13780 12-26-08 23:18 MagicMenu On.app
13780 12-26-08 23:18 MagicMenu Toggle.app
-------- -------
41590 4 files

The ZIP File That Works

  Length     Date   Time    Name
-------- ---- ---- ----
13780 12-26-08 23:18 MagicMenu Off.app
0 01-05-09 17:58 __MACOSX/
45133 12-26-08 23:18 __MACOSX/._MagicMenu Off.app
13780 12-26-08 23:18 MagicMenu On.app
45151 12-26-08 23:18 __MACOSX/._MagicMenu On.app
13780 12-26-08 23:18 MagicMenu Toggle.app
45271 12-26-08 23:18 __MACOSX/._MagicMenu Toggle.app
-------- -------
176895 7 files

Chieh Cheng
Wed, 07 Jan 2009 01:17:59 +0000

I typed "zip -S archive readme.txt" and got "zip error:: Invalid command arguments (no such option: S)" . . . I didn't see anything with regards to the "-S" switch in the help page either.

Chieh Cheng
Wed, 07 Jan 2009 01:23:09 +0000

i saw it in the man page, but -S didn't work for me either. i wonder if i have another copy of zip installed.

-S [MSDOS, OS/2, WIN32 and ATARI] Include system and hidden files.
[MacOS] Includes finder invisible files, which are ignored otherwise.

i created the files and directories by hand and it seems to work if i used -r:

$ zip -r magic *
updating: Magic.app (stored 0%)
updating: __MACOSX/ (stored 0%)
updating: __MACOSX/._Magic.app (stored 0%)

this might not work if __MACOSX is hidden and i am not sure if all the permission bits in the zip file would be set correctly.

maybe you should use .dmg instead, since most mac apps are distributed that way.

here's a command line creator...
http://www.kernelthread.com/mac/apme/archive/

gnowk
Wed, 07 Jan 2009 02:36:47 +0000

Ok, I have created an universal DMG creation script based on the information presented in the web site above. You can download it here: MakeDMG.ksh (GPL)

Chieh Cheng
Fri, 09 Jan 2009 02:24:37 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 0 + 6?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.


Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

105 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 2004 - 2024. All Rights Reserved.