pkg format

Discussion in 'Mac Programming' started by badsandwich, Feb 9, 2010.

  1. badsandwich macrumors member

    Joined:
    Sep 8, 2009
    #1
    Is there any reason why I shouldn't distribute a .pkg file as is (i.e. without zipping it up or putting it inside a dmg first)?

    Thanks!
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    Size. Not compressing your installer wastes bandwidth for both yourself and your users.
     
  3. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #3
    Older .pkg's were actually bundles (folders disguised as files), so they were always archived for distribution.
     
  4. badsandwich thread starter macrumors member

    Joined:
    Sep 8, 2009
    #4
    but pkg files are compressed..?
     
  5. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #5
    They do in fact appear to be compressed. pkg files are XAR archives that do not compress much if at all (using BetterZip to test).
     
  6. badsandwich thread starter macrumors member

    Joined:
    Sep 8, 2009
    #6
    Argh. Just learned (the hard way) another reason not to do this: it seems that if the pkg file gets corrupted you don't necessarily know it until after you try installing it...
     

Share This Page