• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
system.run in script leads to "Path for embedded script ... not available"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system.run in script leads to "Path for embedded script ... not available"


  • Subject: system.run in script leads to "Path for embedded script ... not available"
  • From: Jaroslav Ć najdr <email@hidden>
  • Date: Tue, 10 Jul 2012 15:12:35 +0200

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.

Jarda Snajdr

 _______________________________________________
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

  • Follow-Ups:
    • Re: system.run in script leads to "Path for embedded script ... not available"
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: Unable to apply Custom Icon to Flat package
  • Next by Date: Re: system.run in script leads to "Path for embedded script ... not available"
  • Previous by thread: Re: Unable to apply Custom Icon to Flat package
  • Next by thread: Re: system.run in script leads to "Path for embedded script ... not available"
  • Index(es):
    • Date
    • Thread