Re: How to add a new file to an existing package
Re: How to add a new file to an existing package
- Subject: Re: How to add a new file to an existing package
- From: Ben Staveley-Taylor <email@hidden>
- Date: Mon, 24 Aug 2009 09:47:42 +0100
Thanks, Andrew.
It never occurred to me that a file might be installed if it was not
listed in the Contents pane so I never even tried. I'd be a bit
nervous relying on that though -- it smacks of the kind of thing that
will suddenly and mysteriously stop working in the final release
build, and you won't spot it until well after you've shipped!
I've now realized that the package contents is contained in an XML
file inside the .pmdoc package. If I open the package up and edit the
"01-<packagename>-contents.xml" file, there is a straightforward
hierarchy of entries like:
<f n='myfile.txt' o='root' g='admin' p='33204'/>
and editing this directly to add in a new file appears to work (so
far!). A bit clunky, but if it works, it works.
-- Ben.
On 22 Aug 2009, at 06:39, Andrew Peckover wrote:
Hello Ben,
Welcome to the bizarre world of PackageMaker. I don't have a
definitive answer for you... I will say though that the permissions
I set in the "contents" pane seem flaky to me. i.e. sometimes they
work and sometimes they don't, for whatever reason. I admit I
haven't done rigorous testing, so it very well could be something
I'm doing wrong.
But in any case, since it doesn't work to start with, personally I
don't see the point in even worrying about the contents pane, I just
set the permissions of the source files how I want them, or use a
simple script to set permissions after the files are installed. I
really don't think it matters if the file shows up in the contents
pane (can someone show me otherwise?)
Initially, I thought that if a file didn't appear in the contents
pane, that it wasn't going to be included in the package. But it is
included, so everything's good.
Another thought - I think the idea of the "snapshot" feature is that
it registers changes that you make, so you might want to look into
that. It's a new feature in one of the recent versions...
Andrew
_______________________________________________
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