• 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
Re: Shared code between preinstall/postinstall scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shared code between preinstall/postinstall scripts


  • Subject: Re: Shared code between preinstall/postinstall scripts
  • From: Conor Schutzman <email@hidden>
  • Date: Sat, 31 Aug 2013 07:46:24 -0700

You can reference a script by URL or path. But it has a higher rate of fail because what if the script is corrupt or has been modified, or the client not have access to the web?

And unless you make it a resource, you'll have a cart and horse problem in preflight. How do you call a script you haven't deployed yet. 



On Aug 31, 2013, at 7:12 AM, Philip Petev <email@hidden> wrote:

Yeah, I know about that, but these extra resources can be used only by the preinstall/postintall scripts of that package and the other packages can't. I was thinking of a script, which can be used anytime by any preinstall/postinstall package of any package inside the distribution.


On Sat, Aug 31, 2013 at 3:36 PM, Stephane Sudre <email@hidden> wrote:
You can add extra resources to one package that then can be used by the pre/postinstallation scripts of this very same package (they would be accessible at ./).


On Sat, Aug 31, 2013 at 7:55 AM, Philip Petev <email@hidden> wrote:
Is there a way for all preinstall and postinstall scripts to use a shared code, maybe a script inside the package, which every preinstall/postinstall script could use  ? I have a code, which is present in almost all postinstall scripts in my package and I want to simplify the things.  


 _______________________________________________
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



--
Packaging Resources - http://s.sudre.free.fr/Packaging.html



--
A false life is equal to death. Be your true self... like me !!!
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
References: 
 >Shared code between preinstall/postinstall scripts (From: Philip Petev <email@hidden>)
 >Re: Shared code between preinstall/postinstall scripts (From: Stephane Sudre <email@hidden>)
 >Re: Shared code between preinstall/postinstall scripts (From: Philip Petev <email@hidden>)

  • Prev by Date: Re: Shared code between preinstall/postinstall scripts
  • Next by Date: Re: Shared code between preinstall/postinstall scripts
  • Previous by thread: Re: Shared code between preinstall/postinstall scripts
  • Next by thread: Re: Shared code between preinstall/postinstall scripts
  • Index(es):
    • Date
    • Thread