• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PackageMaker 3.0 "Allow Relocation", file permissions bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PackageMaker 3.0 "Allow Relocation", file permissions bugs


  • Subject: Re: PackageMaker 3.0 "Allow Relocation", file permissions bugs
  • From: Kevin Hoyt <email@hidden>
  • Date: Tue, 18 Dec 2007 13:05:37 -0800


I create two disk images, copy over all of my files with correct permissions the the first image.  I then created projectmaker projects based upon this disk image.  This allows me to use fully qualified paths in the projecs.

When I want to build a package, I drive it from the command line...
create the packaging disk image:
   hdiutil create -volname PackagingDisk -size 300m -fs HFS+ ./PackagingDisk.dmg
   hdiutil attach ./PackagingDisk.dmg -owners on    
copy the files, set permissions
build the packages:
   /Developer/usr/bin/packagemaker -build -proj <path to .pmproj file> -p /Volumes/PackagingDisk/<packagename>.pkg
copy into the package the pre/post install scripts

repeat for all packages in the distribution

This creates all of the packages for the distribution.  All that is left is to wrap them all up in the distribution...

I have scripted this too...
Create the distribution directory structure.
Copy all sub-packages to the distribution directory structure, along with the other distribution files.

Then I create a disk image from the distribution directory
   hdiutil create -quiet -srcfolder "/Volumes/PackagingDisk/<my package>.mpkg/" ./<disk image name>.dmg  
   hdiutil internet-enable ./<disk image name>.dmg


Yes, it takes about 1000 lines of shell scripting to make all this happen... nice huh?  
No, I can't share any more than I already have... sorry...


I do have pmproj files for all of the packages.
I have one for the distribution too but I only use that to generate the initial distribution.dist file.  The one we ship has been edited by hand so I only run the distrubtion project to get new package sizes.




Jack Repenning <email@hidden>

12/18/2007 12:38 PM

To
Kevin Hoyt/San Jose/IBM@IBMUS
cc
email@hidden
Subject
Re: PackageMaker 3.0 "Allow Relocation", file permissions bugs





On Dec 18, 2007, at 12:11 PM, Kevin Hoyt wrote:

I create two disk images, one to store the package contents before packaging, one to hold the real installation.
This allows me to have fully qualified paths that are consistant accross systems and gets around the relative path issues...



Can you describe that a little more fully?  'Cause I'm Really Interested in this topic, but I don't follow your solution....



-==-
Jack Repenning

email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org

"Subversion for the rest of OS X"


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: PackageMaker 3.0 "Allow Relocation", file permissions bugs (From: Jack Repenning <email@hidden>)

  • Prev by Date: Re: PackageMaker 3.0 "Allow Relocation", file permissions bugs
  • Next by Date: PackageMaker can't generate metapackage on 10.5 in Terminal
  • Previous by thread: Re: PackageMaker 3.0 "Allow Relocation", file permissions bugs
  • Next by thread: question on building distribution packages
  • Index(es):
    • Date
    • Thread