Re: Turning off relocation (a hack solution to a PackageMaker bug)
Re: Turning off relocation (a hack solution to a PackageMaker bug)
- Subject: Re: Turning off relocation (a hack solution to a PackageMaker bug)
- From: "Craig Schamp" <email@hidden>
- Date: Thu, 2 Oct 2008 15:24:23 -0700
I saw an open source project's build script which also deleted the Contents/Resources/TokenDefinitions.plist in the same block of code that deleted IFPkgFlagRelocatable from the Info.plist. Is this unnecessary? Is it a bad idea?
On Thu, Oct 2, 2008 at 12:27 PM, Bill Coderre
<email@hidden> wrote:
Here is a shell script for "bundle" format installer packages which might help:
defaults write FOO.pkg/Contents/Info IFPkgFlagRelocatable -bool NO
As for "flat" packages, you could do this:
pkgutil --expand FOO.pkg FOO.pkgsrc
perl -i -pe 's/relocatable\s*=\s*"true"/relocatable="false"/' FOO.pkgsrc/PackageInfo
pkgutil --force --flatten FOO.pkgsrc FOO.pkg
These hacks "slam" the relocatable flag to false.
They're "hacks" because they "know" the format of the bundle and flat packages. Package Formats are not officially documented. On the other hand, Installer.app in 10.5.5 still installs packages from 10.1 era (late 2001), so it'll probably be a while before the hacks stop working.
Anyway, this might be enough to get your problem solved sufficiently that you can get back to writing software.
_______________________________________________
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