wtfbbqhax / tremulous

:godmode: Modern modular idTech3 based engine, Tremulous

Home Page:http://wtfbbqhax.github.io/tremulous/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto-update client/server binaries

wtfbbqhax opened this issue · comments

Cherry pick code from Tremulous-Launcher and plumb it into src/sys/sys_main.c:main().

Outline of run-time expectation:

  1. Initialize cvars; check for autoupdate->integer > 1
  2. Request list of releases from wtfbbqhax/tremulous
  3. Download update if available
  4. exec new tremulous instance/wait + kill self
commented

Make sure you only auto update if you're running an official build.

@megatog615 absolutely!

As I flesh out the infrastructure that will feed the auto-updater additional release "channels" will be added (e.g., beta, stable, nightly). Users will be able to choose which release channel they are subscribed to.