SqueakMap question - Can there be 2 MCZ per Package?

Milan Zimmermann milan.zimmermann at sympatico.ca
Wed Sep 20 14:36:58 UTC 2006


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:
> goran at krampe.se 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



More information about the Squeak-dev mailing list