Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding Scripts to distribution packages



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:
http://lists.apple.com/mailman/options/installer-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.