• 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: Error when trying to add Info.plist fo packagemaker project by command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error when trying to add Info.plist fo packagemaker project by command line


  • Subject: Re: Error when trying to add Info.plist fo packagemaker project by command line
  • From: Bill Coderre <email@hidden>
  • Date: Fri, 17 Oct 2008 11:48:44 -0700

You're getting warmer...

PLISTS are a Mac OS X general purpose file format, not just for installers. All legal bundles have them, and support is built into CoreFoundation.

Having JUST those two lines is NOT a valid plist. Open any Info.plist in TextEdit to see what else is needed.

You CAN write several different bits of code to ADD those two lines (aka a "key-value pair") to an EXISTING plist. That's probably what you want.

"defaults write" is probably the simplest way to add a pair to a keylist. It will be something like the following (untested):
defaults write MyInstaller.pkg/Content/Info 'IFPkgFlagRestartAction' 'RequiredRestart'

Assuming this line does not produce an error, and you can see the change in the file, it's working correctly. You're done. Ta-da.


The other choice is, as others have said, to get a "good" plist and replace the one that PackageMaker makes with the good one.


On Oct 17, 2008, at 10:32 AM, OSullivan, Steve wrote:
The saga of the Info.plist file continues....

I have created an Info.plist file that consists of the following two lines

<key>IFPkgFlagRestartAction</key>
<string>RequiredRestart</string>

And it is located in a directory named: /build_base/info_plist/

And I am calling packagemaker from the following command line:

/Developer/usr/bin/packagemaker -r /pkg_base_engine -o
/pkg_scratch/engine.pkg -i com.company.project -n 8.0.100.1 -t "Project
Engine" -l /Applications/Company/Engine -s /build_base/scripts/ -e
/build_base/resources -f /build_base/info_plist/Info.plist -g 10.5 -h
system -b


When my build scripts run, I get the following error, and it only has
started since I added the Info.plist file to the mis:

2008-10-17 09:35:03.667 packagemaker[61797:10b] Setting to : 0 (null)
2008-10-17 09:35:03.668 packagemaker[61797:10b] Setting to : 0 (null)
2008-10-17 09:35:03.669 packagemaker[61797:10b] relocate: (null) 0
2008-10-17 09:35:03.670 packagemaker[61797:10b] Setting to : 0
com.emc.retrospect
ERROR: Could not merge "PackageInfo" file into package: Line 2: Extra
content at the end of the document.



Are there any special requirements as to the formatting or line breaks of
the Info.plist file? I am editing using TextWrangler and saving the file as
"Western (Mac OS X Roman)" and "Unix LF".


Is my syntax wrong in my Info.plist file? Any and all thoughts are
appreciated!

Regards,

Steve O'Sullivan

_______________________________________________
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

_______________________________________________ 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: 
 >Error when trying to add Info.plist fo packagemaker project by command line (From: "OSullivan, Steve" <email@hidden>)

  • Prev by Date: Error when trying to add Info.plist fo packagemaker project by command line
  • Next by Date: Re: Error when trying to add Info.plist fo packagemaker project by command line
  • Previous by thread: Re: Error when trying to add Info.plist fo packagemaker project by command line
  • Next by thread: Error when trying to add Info.plist fo packagemaker project by command line
  • Index(es):
    • Date
    • Thread