QtUpdater
Presentation
QtUpdater is a tool to check for updates in your Qt application. You may use it to check applications auto-updates, but not only.
The tool downloads an appcast (JSON file) from an endpoint and compares it with QCoreApplication::applicationVersion()
. The JSON looks like this:
|
|
No GUI is included, it is up to you to build your own in C++/QtWidgets or QML/QtQuick. The QtUpdater
class has all necessary signals and slots to be used in one of these technologies.
It can:
- Check for update availability on a parameterized frequency (every start, every day…).
- Download changelog.
- Download installer.
- Check if the installer validates the MD5 checksum provided in the appcast.
- Launch the installer and quit the application.
It also comes with a QtDownloader
utility that handles downloading a file to disk, or data, and exposes all these functionnality to QML.
Usage
The basic usage looks like this:
|
|
Information
- Repository: https://github.com/oclero/qtupdater
- License: MIT