Results 1 to 6 of 6
  1. #1


    Member Since
    Aug 05, 2008
    Location
    Beaumont, TX
    Posts
    38
    How do I create a package
    First of all, let me say I'm aware of PackageManager. But as best as I can tell that app is for creating an application. The type of package I want to create will simply hold files. VMWare uses these as do some DVD creators.

  2. #2

    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    You may have heard of PackageManager, but have you heard of Google?

    Google

  3. #3


    Member Since
    Aug 05, 2008
    Location
    Beaumont, TX
    Posts
    38
    OF COURSE! Most of the results referred to PackageManager. No Help.

  4. #4

    Slydude's Avatar
    Member Since
    Nov 15, 2009
    Location
    North Louisiana, USA
    Posts
    10,271
    Specs:
    2.8 GHz MacBook Pro 10.11, 8 GB mem, iPhone 6+
    What are you trying to distribute? Could you do it as a zip archive?
    Sylvester Roque Former Contributing Editor About This Particular Macintosh

    "Got Time to breathe. You got time for music." Denver Pyle as Briscoe Darling

  5. #5

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    You'll need to be more specific especially if a zip archive is insufficient. What are you trying to accomplish? What kind of files are you working with? There are some other compression formats available to you beyond zip (tar, gunzip, bunzip2) if an archive is needed and zip doesn't work.
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  6. #6

    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    How to Programmatically Create a Mac OS X Package (from the command-line or a shell script).

    Note that any lines ending with a backslash should be one line; they've been broken here for a narrower display width.
    Set up the files you want to package in a folder called dstroot:
    % mkdir ./dstroot
    % mkdir -p ./dstroot/usr/local/bin/ \
    dstroot/usr/local/share/man/man1/
    % install -m 755 myprog ./dstroot/usr/local/bin/
    % install -m 644 myprog.1 \
    ./dstroot/usr/local/share/man/man1/
    Create a package info file (this has nothing to do with Fink info files). Either copy one from another .pkg to use as a template, or see this pkg info file from osxutils.

    Make the package:
    % find dstroot -name .DS_Store -delete
    % sudo chown -R root:staff dstroot
    % package dstroot mypackage-0.1.info -d . -ignoreDSStore
    % rm -f 1
    % install -m 644 README.txt \
    mypackage-0.1.pkg/Contents/Resources/ReadMe.txt
    % install -m 644 LICENSE.txt \
    mypackage-0.1.pkg/Contents/Resources/License.txt
    % sudo chown -R root:staff \
    mypackage-0.1.pkg/Contents/Resource
    % tar -h mypackage-0.1.pkg -cf mypackage-0.1.pkg.tar
    % gzip -9 mypackage-0.1.pkg.tar
    See an example Makefile from the osxutils package which builds a .pkg from the command line at SourceForge.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I create a MAC installation package from a .jar?
    By cschene in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 01-08-2015, 04:39 AM
  2. How to create package from command line?
    By jnojr in forum OS X - Operating System
    Replies: 1
    Last Post: 02-11-2013, 06:45 PM
  3. Up-To-Date Package. What Did You Get?
    By chrismac in forum OS X - Operating System
    Replies: 7
    Last Post: 08-29-2009, 02:02 PM
  4. DIRECTV Package!
    By BiT in forum Schweb's Lounge
    Replies: 6
    Last Post: 06-19-2006, 10:36 PM
  5. Could get a little more in the package....
    By nickuss04 in forum Apple Desktops
    Replies: 4
    Last Post: 01-31-2006, 11:16 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
  •