QML based updater to install and launch the game.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
aria2 @ c90ff13
build-docker
fluid @ 60ff2cf
quazip @ cf36e59
resources
.gitignore
.gitmodules
Dockerfile
Dockerfile.win
DownloadInfo.qml
News.qml
NewsCard.qml
README.md
Settings.qml
ariadownloader.cpp
ariadownloader.h
currentversionfetcher.cpp
currentversionfetcher.h
downloadtimecalculator.cpp
downloadtimecalculator.h
downloadworker.cpp
downloadworker.h
main.cpp
main.qml
osx.cpp
qml.qrc
qmldownloader.cpp
qmldownloader.h
qtquickcontrols2.conf
settings.cpp
settings.h
splash.qml
system.h
unix.cpp
updater.ico
updater.rc
updater2.pro
utils.js
win.cpp

README.md

updater

Autoupdates Unvanquished using Unvanquished's CDN

Initializing submodules

git submodule init && git submodule update

Build aria2

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 ..

Build updater

Note: you need Qt 5.8 at least.

QT_SELECT=5 qmake -config release
make -j4

Build Linux version in docker

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.

Build Windows version in docker

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.