Autoupdates Unvanquished using Unvanquished's CDN
git submodule init && git submodule update
Before building the updater itself you need to build aria2 library
cd aria2
autoreconf -i
./configure --without-libxml2 --without-libexpat --without-sqlite3 --enable-libaria2 --without-zlib --without-libcares --enable-static=yes ARIA2_STATIC=yes --without-libssh2 --disable-websocket
make -j4
cd ..
Note: you need Qt 5.8 at least.
QT_SELECT=5 qmake -config release
make -j4
docker build -t updater2 .
docker run -v `pwd`/build-docker:/build-docker -u `id -u $USER` updater2
strip build-docker/updater2 # Optionally strip binary to reduce its size
Search for updater2 in build-docker directory.
docker build -t updater2-win -f Dockerfile.win .
docker run -v `pwd`/build-docker:/build-docker -u `id -u $USER` updater2-win
strip build-docker/updater2.exe # Optionally strip binary to reduce its size
Search for updater2.exe in build-docker directory.