# remove relocatable stuff
import os
import plistlib
tokendefinitions = os.path.join(pkgpath, "Contents/Resources/TokenDefinitions.plist")
if os.path.exists(tokendefinitions):
os.remove(tokendefinitions)
infoplist = os.path.join(pkgpath, "Contents/Info.plist")
pl = plistlib.readPlist(infoplist)
if 'IFPkgPathMappings' in pl:
del pl['IFPkgPathMappings']
plistlib.writePlist(pl, infoplist)
shell snippet:
rm -f "$PKGPATH/Contents/Resources/TokenDefinitions.plist"
defaults delete "$PKGPATH/Contents/Info" IFPkgPathMappings
-Greg
On May 31, 2010, at 2:52 AM, Katherine Maguire wrote:
We have an automated build system and currently we are running packagemaker on the command line.
The default behavior is to allow relocation of the application. In the man pages on developer.apple.com it states that xcode 3.2.1 has a command line parameter –w or –no-relocate but xcode 3.2.2 and packagemaker 3.0.4 does not support this parameter.
Does anyone know how I disable the relocation as at the moment I have to perform a manual step to fix the build by running the application in GUI mode?