Rinn
Developer
Edit: This broke again due to the turndown of ci.kolmafia.us. There are a couple of recent posts that may be reasonable alternatives.
-- heeheehee
I wrote a small console program that will automatically parse http://builds.kolmafia.us/ and download the latest daily build if it doesn't exist locally. You could set this as a scheduled task, but make sure you don't hammer the server looking for updates.
The program will also create (or modify) the file KoLMafiaUpdate.log so you can review previous attempts at updating. Some sample log output:
http://dl.getdropbox.com/u/220774/KoLMafiaUpdate.exe
http://dl.getdropbox.com/u/220774/KoLMafiaUpdate.cs
Version 1.8 - Fix for not being able to parse the revision number because the filename has an M at the end. Also fixed the -h typo.
Version 1.7 - Fix for the build links sorting by string instead of revision number.
Version 1.6 - Add some additional exception handling.
Version 1.5 - Only delete kolmafia jar files.
Version 1.4 - Delete old .jars after updating. Passing in -d as a command line argument will disable this functionality.
Version 1.3 - Open KoLmafia-latest.jar automatically. Passing in -o as a command line argument will disable this functionality.
Version 1.2 - Don't copy if the download fails
Version 1.1 - Automatically make a copy of the latest version as KoLmafia-latest.jar
Version 1.0 - Release
-- heeheehee
I wrote a small console program that will automatically parse http://builds.kolmafia.us/ and download the latest daily build if it doesn't exist locally. You could set this as a scheduled task, but make sure you don't hammer the server looking for updates.
The program will also create (or modify) the file KoLMafiaUpdate.log so you can review previous attempts at updating. Some sample log output:
Code:
---------------
10/28/2009 11:56:41 PM
Checking http://builds.kolmafia.us/ for the latest version of KoLMafia...
KoLmafia-7772.jar is the latest version
Attempting to download http://builds.kolmafia.us/KoLmafia-7772.jar...
Successfully downloaded http://builds.kolmafia.us/KoLmafia-7772.jar
Copying KoLmafia-7772.jar to KoLmafia-latest.jar
---------------
---------------
10/29/2009 12:02:51 AM
Checking http://builds.kolmafia.us/ for the latest version of KoLMafia...
KoLmafia-7772.jar is the latest version
KoLmafia-7772.jar exists, you have the latest version
---------------
http://dl.getdropbox.com/u/220774/KoLMafiaUpdate.cs
Version 1.8 - Fix for not being able to parse the revision number because the filename has an M at the end. Also fixed the -h typo.
Version 1.7 - Fix for the build links sorting by string instead of revision number.
Version 1.6 - Add some additional exception handling.
Version 1.5 - Only delete kolmafia jar files.
Version 1.4 - Delete old .jars after updating. Passing in -d as a command line argument will disable this functionality.
Version 1.3 - Open KoLmafia-latest.jar automatically. Passing in -o as a command line argument will disable this functionality.
Version 1.2 - Don't copy if the download fails
Version 1.1 - Automatically make a copy of the latest version as KoLmafia-latest.jar
Version 1.0 - Release
Last edited by a moderator: