• 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: Bill Coderre <email@hidden>
  • Date: Sun, 01 Sep 2013 11:33:36 -0700

This seems like a false economy -- but.....

$INSTALLER_TEMP is documented. It is a secure location (created using mktemp-like tricks to avoid hackery), that is created at the beginning of the distribution and kept around until the end, when it is reaped. (Not 1000% sure exactly how long it takes to get reaped. I think soon.)

The other thing to know is that the installer installs packages in the order they appear in the choices-outline.

So you COULD copy stuff into $INSTALLER_TEMP at the beginning of the first install script, use it throughout your installation packages, then clean it up in the last script.

But as I said, it seems a false economy, saving some package size at the expense of development effort/slight risk.




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
  • Follow-Ups:
    • 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