Hi,
On SqueakMap, is there a way to create a Package and attach to it 2 or more MCZ files? (and define the order in which they load) - Or is SqueakMap strictly 1 Package to 1 related file? This should be another newbie question i guess... Thanks Milan |
Hi Milan!
Milan Zimmermann <[hidden email]> wrote: > Hi, > > On SqueakMap, is there a way to create a Package and attach to it 2 or more > MCZ files? (and define the order in which they load) - Or is SqueakMap > strictly 1 Package to 1 related file? This should be another newbie question > i guess... > > Thanks Milan SM is strictly one URL per release (though I did contemplate the possibility of having multiple but backed out of that, mostly due to complexity) BUT... you can quite easily put two MCs together into a .sar file (which is a zip file with some conventions) which has a load script in it. I presume there are many examples of this - but I can't point you to one. But plenty others on this list must have done it before. regards, Göran |
[hidden email] wrote:
> SM is strictly one URL per release (though I did contemplate the > possibility of having multiple but backed out of that, mostly due to > complexity) BUT... you can quite easily put two MCs together into a .sar > file (which is a zip file with some conventions) which has a load script > in it. > > I presume there are many examples of this - but I can't point you to > one. But plenty others on this list must have done it before. Have a look at the FFI installer (quoted below in full). It loads three MCZs from a particular repository location (for good measure a progress bar is thrown in for free ;-) Works great, less filling. "Simple FFI installation script" repo := MCHttpRepository location:'http://source.squeakfoundation.org/FFI' user: '' password: ''. 'Installing FFI' displayProgressAt: Sensor cursorPoint from: 1 to: 6 during:[:bar| #( 'FFI-Kernel-ar.7.mcz' 'FFI-Tests-ar.2.mcz' 'FFI-Examples-ar.1.mcz' ) keysAndValuesDo:[:index :pkgVersion| bar value: index*2-1. reader := repo versionReaderForFileNamed: pkgVersion. bar value: index*2. version := reader version. version workingCopy repositoryGroup addRepository: repo. version load. ]. ]. Cheers, - Andreas |
Hi!
Andreas Raab <[hidden email]> wrote: > [hidden email] wrote: > > SM is strictly one URL per release (though I did contemplate the > > possibility of having multiple but backed out of that, mostly due to > > complexity) BUT... you can quite easily put two MCs together into a .sar > > file (which is a zip file with some conventions) which has a load script > > in it. > > > > I presume there are many examples of this - but I can't point you to > > one. But plenty others on this list must have done it before. > > Have a look at the FFI installer (quoted below in full). It loads three > MCZs from a particular repository location (for good measure a progress > bar is thrown in for free ;-) Works great, less filling. Ah, yes of course - a static load script. Funny that I forgot about that option. :) Note: With "static" I mean that the script loads the same stuff every time - not the "latest available". That would be a dynamic load script. regards, Göran PS. It really is time for a complete SM rewrite - there are lots of lessons learned and things we can do much better. As always. |
[hidden email] wrote:
> Ah, yes of course - a static load script. Funny that I forgot about that > option. :) > > Note: With "static" I mean that the script loads the same stuff every > time - not the "latest available". That would be a dynamic load script. Interesting. I never even considered that. I guess it's because SM is versioned itself so it makes more sense to me to map a particular SM release to a fixed set of package releases. Cheers, - Andreas |
In reply to this post by Andreas.Raab
Andreas, Goran,
Thanks for your help, comments and code. I have a question (and a few notes): A question for Andreas, when I start squeakMap and look at FFI, under "download" I see a link to http://map.squeak.org/accountbyid/cf58c358-46ee-465e-b6db-2740e9b32a53/files/InstallFFI.st which is the cool progress bar you pasted below. The location:'http://source.squeakfoundation.org/FFI' refers to "default location" where Squeaksouce keeps all files for a project (ending with projectname, e.g. FFI), is that correct? Doing it Andreas's way, I will not need to build a SAR - but for curiosity, I looked for how to build it. Eventually I found Ned's SARBuilder but am not quite sure how to use it. As a first time SqueakSource/Map user note, the "Save" on SqueakSource, that publishes on SqueakMap (does not work as I found out) would be great for people doing this the first time, but I suspect it tries to just copy one file from squeakSource to SqueakMap, in a way it would be better if it just published a small installer code and point to SqueakSource like Andreas's. I will try to build my SqueakMap project and ask more question if I fail tonight, thanks Milan On 2006 September 20 03:16, Andreas Raab wrote: > [hidden email] wrote: > > SM is strictly one URL per release (though I did contemplate the > > possibility of having multiple but backed out of that, mostly due to > > complexity) BUT... you can quite easily put two MCs together into a .sar > > file (which is a zip file with some conventions) which has a load script > > in it. > > > > I presume there are many examples of this - but I can't point you to > > one. But plenty others on this list must have done it before. > > Have a look at the FFI installer (quoted below in full). It loads three > MCZs from a particular repository location (for good measure a progress > bar is thrown in for free ;-) Works great, less filling. > > "Simple FFI installation script" > repo := MCHttpRepository > location:'http://source.squeakfoundation.org/FFI' > user: '' > password: ''. > 'Installing FFI' > displayProgressAt: Sensor cursorPoint > from: 1 to: 6 during:[:bar| > #( > 'FFI-Kernel-ar.7.mcz' > 'FFI-Tests-ar.2.mcz' > 'FFI-Examples-ar.1.mcz' > ) keysAndValuesDo:[:index :pkgVersion| > bar value: index*2-1. > reader := repo versionReaderForFileNamed: pkgVersion. > bar value: index*2. > version := reader version. > version workingCopy repositoryGroup addRepository: repo. > version load. > ]. > ]. > > Cheers, > - Andreas |
Free forum by Nabble | Edit this page |