Re: How to add a new file to an existing package
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thanks, Andrew. <f n='myfile.txt' o='root' g='admin' p='33204'/> -- Ben. On 22 Aug 2009, at 06:39, Andrew Peckover wrote: Hello Ben, _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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: and editing this directly to add in a new file appears to work (so far!). A bit clunky, but if it works, it works. 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 This email sent to site_archiver@lists.apple.com
participants (1)
-
Ben Staveley-Taylor