• 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
Adding Scripts to distribution packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding Scripts to distribution packages


  • Subject: Adding Scripts to distribution packages
  • From: Paul FitzGerald <email@hidden>
  • Date: Fri, 22 Feb 2008 11:17:36 -0800

I'm having a problem trying to figure out how to add a shell script to my distribution package (10.4+).
Since I have an automated build system the solution must be from the command line (no hand editing, that would be to easy).


I currently use the following shell command to build my mpkg (formatted for readability)...
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/ PackageMaker
--title ProductName
--root-volume-only
--no-recommend
--target 10.4
--domain system
--doc resources/install_resources/ProductName.pmdoc
--scripts resources/install_resources/Scripts/
--out "ProductName Installer.mpkg"
-v


In my pmdoc file I have an Open File action that will/should call my shell script.
Looking in the created package I see a Postflight sub-package and in it I see a postflight script that has a call to open my script.
So, that all looks cool.


But the issue it that my script is not being copied into the mpkg. My script is located in the folder specified by the --scripts attribute of the command line.

Does anyone know how to add scripts to an mpkg from the command line?
Is there a way to specify within a pmdoc to add specific files?

Thanks,
Paul
_______________________________________________
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


  • Prev by Date: Create Alias w Leopard PackageMaker
  • Next by Date: Re: Installer Package database questions
  • Previous by thread: Re: Create Alias w Leopard PackageMaker
  • Next by thread: PackageMaker plug-in for a "Show ReadMe" panel?
  • Index(es):
    • Date
    • Thread