Hi there, what kind of installable package files is the preferred one at the moment: .sar or .mcz? FYI, i want to automatically execute some code after loading the package. I found in a mailinglist, that in a .sar you can state this in install/postscript and in a .mcz you can use class-side startup: message. But .sars don't seem to be really used - am i right?
Regards, Martin
Matin,
I use a .sar for the Squeak version of Chronos, which is available on SqueakMap. One reason is simply that Avi still owns the Monticello-based Chronos package on SqueakSource, meaning I can't update it (and by the way, Avi only ever uploaded his very initial Chronos port, which will break your image unless you are using a Squeak version < 3.7.) But more relevant to this discussion is the fact that the "preamble" and "postscript" scripts in a .sar make it easy to optionally install some modules (or install different versions of the same module) based on the version of Squeak into which Chronos is being imported. I don't believe Monticello supports that capability.
--Alan
-----Original Message----- From: squeak-dev-bounces@lists.squeakfoundation.org [mailto:squeak-dev-bounces@lists.squeakfoundation.org] On Behalf Of Martin Beck Sent: Tuesday, December 26, 2006 1:37 PM To: The general-purpose Squeak developers list Subject: sar or mcz?
Hi there, what kind of installable package files is the preferred one at the moment: .sar or .mcz? FYI, i want to automatically execute some code after loading the package. I found in a mailinglist, that in a .sar you can state this in install/postscript and in a .mcz you can use class-side startup: message. But .sars don't seem to be really used - am i right?
Regards, Martin
Martin Beck puso en su mail :
Hi there, what kind of installable package files is the preferred one at the moment: .sar or .mcz? FYI, i want to automatically execute some code after loading the package. I found in a mailinglist, that in a .sar you can state this in install/postscript and in a .mcz you can use class-side startup: message. But .sars don't seem to be really used - am i right?
Regards, Martin
I always use .sar modified SARBuilder plus modified ArchiveViewer for having some "app" deliver when I need more as just code. See Rompecabezas.8.sar in SqueakMap to see how pack sound, picts, morphs,etc.
Using the version info I could decide what was needed load for different Squeak and the new version could load into Squeak 3.9/3.10, SqueakLight and MinimalMorphic.
As SqueakSource don't let you put any different as .mcz, I have a modified .mcz unpublished thing for doing the same "app" packaging thing and logic for loading again from SqueakSource.
Edgar
__________________________________________________ Pregunt�. Respond�. Descubr�. Todo lo que quer�as saber, y lo que ni imaginabas, est� en Yahoo! Respuestas (Beta). �Probalo ya! http://www.yahoo.com.ar/respuestas
squeak-dev@lists.squeakfoundation.org