Re: Flat Packages, Gatekeeper, and Resources
On Tue, Jul 31, 2012 at 10:43 PM, Julian Devlin <juliand@sassafras.com> wrote:
With the distribution selected on the left, check the "Requirements" tab in the middle of the screen, click + at the bottom.
As far as localizing the messages... I would guess that if there's an appropriate file in the Resources directory, it will be used.
Generally, if you produce a flat package with the UI, you can then modify the files it contains as follows... 1. cd into an empty directory 2. xar -xf /path/to/flat.pkg 3. look at the files now present in the directory, modify them as you wish 4. xar --compression none -cf /newpath/to/flat.pkg .
I would guess that you may be able to find some Apple package that uses an Installation Check with localized strings in order to determine the proper format...
If anyone knows how to do an InstallationCheck that uses a compiled program, that's the part I can't find.... I'm guessing it's impossible :(
InstallationCheck in distribution are usually achieved through JavaScript. That being said, there's a JavaScript API to run a shell script (or executable). The difficult part (at least with PackageMaker) is to embed the shell script or executable into the flat distribution. This requires to expand the flat distribution and then flatten it. The script or executable needs to be in a Scripts archive at the same level as the Resources folder. -- Packaging Resources - http://s.sudre.free.fr/Packaging.html _______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre