Re: system.run in script leads to "Path for embedded script ... not available"
Re: system.run in script leads to "Path for embedded script ... not available"
- Subject: Re: system.run in script leads to "Path for embedded script ... not available"
- From: Stephane Sudre <email@hidden>
- Date: Tue, 10 Jul 2012 16:25:59 +0200
AFAIK, scripts embedded in a flat distribution are only supported on
Mac OS X 10.6 and later.
So if your OS requirements are Mac OS X 10.6 or later, it is supported.
The scripts should end up in a Scripts archive at the same level as
the Resources folder in the .pkg archive.
Distribution
Resources
xx.lproj
Scripts
mypackage1.pkg
So Resources may not be the folder where the script should be put for
productbuild (I can't be sure, I don't use this tool).
On Tue, Jul 10, 2012 at 3:12 PM, Jaroslav Šnajdr <email@hidden> wrote:
> Hello everyone,
>
> I'm building a product installer using the productbuild utility:
>
> productbuild --distribution ./distribution.dist --resources ./Resources [...
> other parameters ...]
>
> The distribution.dist contains an <installation-check> tag that references a
> JavaScript function that attempts to run an external script:
>
> system.run('check_something.sh');
>
> The <options allow-external-scripts="true"/> tag is also there.
>
> The check_something.sh script is located in the Resources directory - the
> one supplied to the --resources command line option.
> However, the resulting package doesn't contain these embedded scripts and
> the install.log displays an error:
>
> IFJS: Path for embedded script check_something.sh not available
>
> What am I doing wrong? Am I putting the external scripts to the wrong
> directory? Do I need to do something to have them included in the package?
> It seems that the files in Resources/ directory that are directly referenced
> from the distribution.dist (background, welcome, license) are included in
> the package, but other files are not.
>
> I'm using Mac OS X 10.7 with XCode 4.1. The PackageMaker version is 3.0.5. I
> don't know if the productbuild executable has any version info at all.
_______________________________________________
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