Opened 11 years ago

Last modified 8 months ago

#1814 new task

Create update.bat to sync windows binaries — at Initial Version

Reported by: Kieran P Owned by:
Priority: Must Have Milestone: Backlog
Component: Build & Packages Keywords:
Cc: Patch:

Description

With our move to git, we will be removing pyrogenesis.exe, pyrogenesis.pdb, and AtlasUI.dll (these three get generated by the autobuilder). As a result, we need an update.bat, or update.exe (whichever is easier) for windows users which does the following:

(quick background, the autobuilder generates binaries for different code branches, and when its done, it will commit a manifest.txt file into the branch the binaries relate to)

  • Use the manifest.txt file in the 0 A.D. code repo (probably stored at binaries/system), which contains a list of files, an md5 checksum for each file, and a url to download them from.

Here is an example manifest:

AtlasUI.dll 52fe3f8c2725445b488f646dca28021f http://releases.wildfiregames.com/autobuilt/master/AtlasUI.dll pyrogenesis.exe 89158e5ea74d5987ed8be026e7f090ce http://releases.wildfiregames.com/autobuilt/master/pyrogenesis.exe pyrogenesis.pdb 44889d0fbf2f48972992c2a4d9e629c2 http://releases.wildfiregames.com/autobuilt/master/pyrogenesis.pdb

  • Compare the manifest with the md5 of the current files. If no current file, download it. If existing file exists, find out if checksum has changed, and download the file if different.
  • Once a file is downloaded, check file downloaded properly by comparing the files checksum with the checksum of the manifest.

This will allow us to easily add files in the future if need be (i.e. additional windows binary/dlls) and allows artists quick access to pull the latest binaries.

Change History (0)

Note: See TracTickets for help on using tickets.