On Sat, Apr 08, 2006 at 02:51:51AM +0200, Zero3Cool wrote:
> Hey.
> 
> As promised, here is a new windows update script for you :)
> 
> Notes:
> - So far its hard-coded for XP. If run on anything else it will refuse 
> to even try updating. I dont have access to any non-XP machines, so if 
> you want me to add support for anything else, i need some feedback :)
> 
> - As this script will update itself as well,
> https://emu.freenetproject.org/svn/trunk/apps/installer/installclasspath/windows/update.cmd
>  
> *must* be updated as well (assuming you are satisfied with this ;)). If its 
> different than the local copy, the local copy will be overwritten.

Can you check that the file downloaded a) exists and b) is of non-zero
length, before replacing it?
> 
> - The updater should be pretty solid, fool-proof and 404-safe, as long 
> as the sockets dont die in mid-download *cough* (/me leaves that to wget)...

Wget is fairly sensible iirc.
> 
> - The local update script and snapshot link files are named "update.cmd" 
> and "freenet-cvs-snapshot.jar.url". The temporary ones downloaded are 
> named "update.new.cmd" and "freenet-cvs-snapshot.jar.new.url" (though 
> the updater should wipe them once it's done using them).
> 
> - Freenet will only be restarted (using stop.cmd and start.cmd) if an 
> update is available (so this script can be scheduled without problems)

Very nice.
> 
> - Tested as much as i found possible locally, but i might have missed 
> something, if so, let me know.
> 
> - Well, tell me what you think... :P
> 
> http://www.zerosplayground.dk/stuff/update.cmd
> 
> ~Zero3Cool
-- 
Matthew J Toseland - toad at amphibian.dyndns.org
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20060410/d52077ce/attachment.pgp>

Reply via email to