RE: External shell script in flat packages
RE: External shell script in flat packages
- Subject: RE: External shell script in flat packages
- From: Khushneet Inder Singh <email@hidden>
- Date: Thu, 06 Sep 2012 17:54:47 +0530
- Thread-topic: External shell script in flat packages
I am using PackageMaker 3.0.5 and I need to support 10.5.8 as well.
Is there any alternative for PackageMaker to achieve this ?
I am on Lion machine and my flat distribution has embedded script which resides in "Scripts" Folder not in "Resources" folder. The Installer app copying it well on temp folder and trying to run it. But got the error "Error while running task TEMP_FOLDER/script.sh launch path not accessible”. When I am running the same script resides in TEMP_FOLDER on terminal, it goes well. But don’t have any idea why installer throws error while running.
Do anyone have any idea why I am getting the error.
~Khushneet
-----Original Message-----
From: installer-dev-bounces+ksingh=email@hidden [mailto:installer-dev-bounces+ksingh=email@hidden] On Behalf Of Stephane Sudre
Sent: Thursday, September 06, 2012 5:24 PM
To: Installer-Dev mailing-list
Subject: Re: External shell script in flat packages
On Thu, Sep 6, 2012 at 1:36 PM, Khushneet Inder Singh <email@hidden> wrote:
> Hi all,
>
> I want to run the external shell script on the some choice. And want
> to use the result of script to select/unselect the choice. So far what
> I did is I added “Result of script” and choose that script file. And
> call that script with system.run(SCRIPT_NAME). Then I build the flat
> package. Once the package is created , I expanded it and create the
> “Scripts” folder and pasted the same script file, then flattened the
> expanded package. On running the package I am getting the error “Error
> while running task TEMP_FOLDER/script.sh launch path not accessible”.
> Are external scripts are supported in flat package?
Yes, they are supported by the flat distribution format.
You can either use a script that is assumed to already be installed on the Mac or a script that is embedded in the flat distribution.
Embedded scripts require Mac OS X v10.6 or later (and are not supported by PackageMaker the last time I checked).
_______________________________________________
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
_______________________________________________
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