How can I enable auto-updates in a Qt cross-platform application?

前端 未结 12 542
孤街浪徒
孤街浪徒 2020-12-22 18:37

I love applications that are able to update themselves without any effort from the user (think: Sparkle framework for Mac). Is there any code/library I can leverage to do th

12条回答
  •  无人及你
    2020-12-22 19:38

    I have found WebUpdate to be quite useful, though it's written with the wxWidgets. But don't worry, it's a separate app which handles your updates. The steps to integrate it are pretty simple - just write two XML files and run the updater. And yes, it's cross-platform.

    The advantage of it is it will automatically download and unzip/install all you required and not just provide a popup with a notification about a new version and a link to download it. Another thing you can do with it is customizable actions.

    Project's main page is here, you can read the docs or take a look at the official tutorial.

提交回复
热议问题