Best Compression Choice

Member
Posts: 509
Joined: 2002.05
Post: #1
I am thinking about changing my compression method for GL Golf. Here are my options

sit - 3.8 MB, causes a problem where sometimes the application just won't launch.
sitx - 4.1 MB, works pretty good, but I have heard of the decompression not working properly in certain instances.
tbz - 3.9 MB
tgz - 3.9 MB
zip - 4 MB

I used to use sit, then I found that sometimes the application executable bit was wrong and the app wouldn't launch. I then switched to sitx where I have heard of some people having problems decompressing some files (just the course pack) (like my dads G5).

Any recommendations? I am not using DMGs because they just confuse people (and don't tell me anything else because its true that some people have a harder time with DMGs than a simple folder)
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #2
Good move, I still havent got how DMGs work.

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
Stuffit Expander isn't installed with Tiger, so if you use one of the Stuffit formats an increasingly large portion of your audience won't be able to decompress your files.

You might try an internet-enabled disk image. That way once it's downloaded, they'll just be left with the application on their desktop and the disk image in the trash.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #4
Thanks OSC, Im glad I posted this thread! I didn't know apple stopped including stuffit with their OS... Why? Is it another example of apple using their power to push technologies that benefit apple's proprietary formats like .dmg instead of the general public?

The dmg is 5.5 megabytes compressed... pretty lousy. .dmg.bz2 and .dmg.gzip are each 5 megs. How do I use the terminal to bzip2,gzip , or zip a folder, I can't find a -x flag for that.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
It's a case of Apple stopping including crappy software with their OS, just like they stopped including IE.

Also, the stuffit format is proprietary and not under Apple's control. DMG is less worrisome since at least Apple controls the format and provides tools to work with it. zip, tar, gzip and bzip2 are of course even less proprietary.

You can't bzip2 or gzip a folder without first tarring it; they're file compression schemes not full archive schemes. tar -czf creates a .tar.gz file; tar -cjf creates a .tar.bz2 file, zip creates zip files.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #6
I guess your right about that - I was just kind of irked that my software was suddenly useless for most new macs and their average users. Stuffit is crappy... it seams very unsupported and had(s) some bad bugs in it.

When I try tar -cjf (drag file here) it gives me this error - tar: Cowardly refusing to create an empty archive , do I need to somehow specify the output file, I am not that good with the terminal yet.

Thanks!
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #7
Code:
tar -cjf <name of file to create> <input files and/or directories>

read the man page for tar (man tar) to find out more.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #8
Thanks, I even tried that but I switched around the output and input files.

Bzip2 is 4 MB and Gzip is 4.3

Also, Zip from DropZip is 4.0MB and Zip from Mac OS X is 4.3 MB

What recommendation do you have with the data in the thread? It seams every form of alladin compression is the smallest, except bzip2. Should I go with bzip2 because it is from apple?

Thanks again for all the help
Quote this message in a reply
Moderator
Posts: 133
Joined: 2008.05
Post: #9
Najdorf Wrote:Good move, I still havent got how DMGs work.

To put it one way, they are simply a file that holds a virtual disk. When you double click on the .dmg file, you are given access to the virtual disk it contains. Simply drag anything you want into the disk, and it's ready to go.
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #10
After a while I realized that you have to move the file you want bzipped2 to hard drive or else you will get lots of folders burrying the file once decompressed (decompresses to Useres/Jake/Desktop/...). But now when I open the glgolf.bz2 file I am left with both an uncompressed tar file (GL Golf) and the final product. How do I get that tar file (I am assuming thats what it is) to delete when opening a bz2 file?

Also, does anyone have any reason why I SHOULDN'T go with bz2? Also, can most users in mac os 9 open .bz2 files?

Thanks again
Quote this message in a reply
Member
Posts: 201
Joined: 2002.06
Post: #11
Change the file extension from .tar.bz2 to .tbz and it should fix that.
Quote this message in a reply
Member
Posts: 749
Joined: 2003.01
Post: #12
why dont you just go with zip...

©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
Quote this message in a reply
Member
Posts: 509
Joined: 2002.05
Post: #13
Najdorf Wrote:why dont you just go with zip...

Mac OS Xs zip compresses to 4.3 megs, but dropzip goes to 4MB. Is it safe to say that tiger users can unzip files made with dropzip? I want to be 100% sure, not just the 95% sure I am right now.

Quote:Change the file extension from .tar.bz2 to .tbz and it should fix that.


Thanks!

Now I am stuck between .tbz and .zip. What one is more compatible with OS 9? Any suggestions between the two?
Quote this message in a reply
Member
Posts: 370
Joined: 2002.04
Post: #14
In general people on OS9 won't be able to get at either unless they have Stuffit Expander or the like. I believe recent versions support both.

Did you ever wonder why we had to run for shelter when the promise of a brave new world unfurled beneath the clear blue sky?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #15
If you're building an OS 9 app, you've probably got some resources. In that case, your only choice is a .dmg-based solution.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Installer Compression Rasterman 12 5,137 Feb 4, 2010 09:53 AM
Last Post: Rasterman