PackageMaker v2 command line
PackageMaker v2 command line
- Subject: PackageMaker v2 command line
- From: Jim Dodd <email@hidden>
- Date: Sun, 22 Mar 2009 13:49:11 -0700 (PDT)
We've always used PackageMaker as a GUI application to successfully build our installer using absolute paths to the package contents and resources. Now, we decided to try to make it possible to run from a bash script file and that has worked as well by using the .pmproj file created by the GUI. As long as we continue to use absolute paths.
Never being satisfied, we decided to try to make our whole project relocatable and switch to using relative paths to the product contents and resource folders. That works when run from the GUI but not when we use this new .pmproj file (with relatie paths) to run from the command line. Our command line is similar to this:
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker -build -proj OurProject.pmproj -p OurApplication.pkg -v
We get this error message:
"The package could not be created because of the following errors:
No root specified for archive."
I tried specifying a path with the -f option (directory containing the contents of the package) but nothing I've tried there works (I think using the -proj option precludes using that option - but I'm not sure). We're using PackageMaker version 2.0 on Tiger (OS X 10.4). If I change the GUI project to use absolute paths and then use that project file (.pmproj) with the command line, it works. But we need to use relative paths.
I'm sorry I am having trouble searching the list archives to check for this. I know it has probably been covered before. Can anyone offer help into why this might happen and how we can fix it?
Thank you,
Jim Dodd
Onset Computer Corporation
_______________________________________________
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