Windows Test Build Updater

Windows Test Build Updater

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Windows Test Build Updater

Post by MelTraX »

This script will download the latest nightly build of Spring, start SpringLobby and auto-join the "official" test server at springlobby.info:8300.

Every day at 10am German time the version is bumped to the newest installer on http://buildbot.eat-peet.net/spring/. I'll also provide a web interface for devs to request an update but for now only I can do it.


Since this is the first version, I'd like to get some feedback. No output of the scripts is hidden so you can pastebin it in case of problems. Once it looks stable, I'll probably change it to user-friendly output like "Downloading wget", "Checking for new version" etc.

The attached script only downloads wget, 7z and the actual files that do the work. The idea behind it is that it could be included in the installer. It's only 1.71 KiB in size atm but all it takes is launching it.
Attachments
Start Nightly Build.7z
The launcher. Extract into Spring directory and launch. (Couldn't attach .cmd.)
(923 Bytes) Downloaded 17 times
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Windows Test Build Updater

Post by imbaczek »

IMHO junctions are too dangerous for normal people, make them a non-default option.

Also, a good idea would be to rewrite this in VBScript, I believe you can access IE (or a downloader com, or something) and registry then, so it could do without downloading wget (nothing wrong with that, besides less dependencies == better) and could figure out the correct spring dir by itself.

Otherwise good work!
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: Windows Test Build Updater

Post by MelTraX »

Rewriting in VB will probably not happen since I have the scripting host disabled on my system and I can access the registry just fine in batch files. I currently use the registry to find out the TASClient lobby username for example. The dependency to ftp.exe bugs me more than the one to wget though. Oh well, I'll think about it. :P

I actually wanted to read the Spring dir from the registry but I now think it's better this way since people probably move the directory around and there is even the portable edition.

About the junctions: yeah, I actually deleted all my maps and mods twice using them. :P I'll just ask the user if he wants them.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Windows Test Build Updater

Post by Auswaschbar »

Include newly updated archivemover and move maps to "my games" :-)
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: Windows Test Build Updater

Post by MelTraX »

Might be a good idea as another option. Like "Use junctions to my dirs", "Move my dirs to My Games" or "Let me manage my dirs myself"..
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Windows Test Build Updater

Post by imbaczek »

and the "Use junctions" option should have "!!!" and "WARNING" all over it ^^
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: Windows Test Build Updater

Post by MelTraX »

Bad childhood experience? :D
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Windows Test Build Updater

Post by imbaczek »

no, more like care for clueless users.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: Windows Test Build Updater

Post by MelTraX »

Yeah, I totally agree.. While they work fine, the Windows tools don't really make it easy to spot and handle them.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Windows Test Build Updater

Post by lurker »

I don't think you need the crazy warnings on Win7, but check that before leaving them off. You might still want something for the truly clueless.
MelTraX
Posts: 470
Joined: 02 Jan 2007, 16:18

Re: Windows Test Build Updater

Post by MelTraX »

Now that you mention Win 7.. I only have tested this on XP so any feedback about what this does in Vista and 7 would be appreciated. :)
Post Reply

Return to “Engine”