https://github.com/eddytheco/esterv.utils.updater
In app updater using Qt IFW for desktop applications
https://github.com/eddytheco/esterv.utils.updater
cmake qt6 updater
Last synced: 2 months ago
JSON representation
In app updater using Qt IFW for desktop applications
- Host: GitHub
- URL: https://github.com/eddytheco/esterv.utils.updater
- Owner: EddyTheCo
- License: gpl-3.0
- Created: 2024-03-24T13:50:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-08T16:32:08.000Z (9 months ago)
- Last Synced: 2024-09-08T17:22:34.769Z (9 months ago)
- Topics: cmake, qt6, updater
- Language: C++
- Homepage: https://eddytheco.github.io/Esterv.Utils.Updater/
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Esterv.Utils.Updater
[TOC]
This repo implements a C++ class and QML Module that takes care of downloading and installing application updates.
The latter can be used to do in-app updates.
The methods rely on the [Qt Installer Framework ](https://doc.qt.io/qtinstallerframework/)(QtIFW) and that the application also installs the 'maintenancetool' provided by the QtIFW.## Dependencies
The repo depends on [Qt](https://doc.qt.io/) libraries.
## Configure, build, test, package ...
The project uses [CMake presets](https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html) as a way to share CMake configurations.
Refer to [cmake](https://cmake.org/cmake/help/latest/manual/cmake.1.html), [ctest](https://cmake.org/cmake/help/latest/manual/ctest.1.html) and [cpack](https://cmake.org/cmake/help/latest/manual/cpack.1.html) documentation for more information on the use of presets.## Adding the libraries to your CMake project
```CMake
include(FetchContent)
FetchContent_Declare(
EstervUpdater
GIT_REPOSITORY https://github.com/EddyTheCo/Esterv.Utils.Updater.git
GIT_TAG vMAJOR.MINOR.PATCH
FIND_PACKAGE_ARGS MAJOR.MINOR CONFIG
)
FetchContent_MakeAvailable(EstervUpdater)
target_link_libraries( Esterv::Updater)
```If you want to use the QML module also add
```
$<$,STATIC_LIBRARY>:Esterv::Updaterplugin>
```## API reference
You can read the [API reference](https://eddytheco.github.io/Esterv.Utils.Updater/) here, or generate it yourself like
```
cmake --workflow --preset default-documentation
```## Using the QML modules
One needs to make available to the QML engine the different modules by setting the [QML import path](https://doc.qt.io/qt-6/qtqml-syntax-imports.html#qml-import-path).
1. In your main function `engine.addImportPath("qrc:/esterVtech.com/imports");` to use the resource file.
2. Set the environment variable like `export QML_IMPORT_PATH=installDir/CMAKE_INSTALL_LIBDIR` where `CMAKE_INSTALL_LIBDIR` is where `Esterv` folder was created.
## Examples
The [examples](examples) folder shows the use of the different classes and QML types.
## Contributing
We appreciate any contribution!
You can open an issue or request a feature.
You can open a PR to the `develop` branch and the CI/CD will take care of the rest.
Make sure to acknowledge your work, and ideas when contributing.