2014-10-06 23 views
2

我正在开发一个跨平台的应用程序(Mac和Windows)。如何在Mac和Windows的此应用程序中添加自动更新,分别或组合?如何在Qt跨平台应用程序中添加自动更新?

通过一些Google搜索,我开始了解关于Sparkle框架 Mac,但无法按照其文档,因为它可能解释为XCode项目。 Sparkle框架如何用于Qt项目?

回答

1

您可以使用this为您的目的。这里是简短描述:

We needed an autoupdater for our project and decided to emulate Sparkle as closely as 
possible but to keep it cross-platform. 
Here are the bullet points: 
Licensed under the MIT license 
Designed for and tested with Qt 4.8 
Requires updates to be digitally signed 
Periodically checks for updates 
Downloads updates to a temporary directory and executes installers (or on mac opens .dmg files), deleting them after install. 

Here are some of the things we haven't worked on yet but will once they become more of an issue: 
Doesn't have a fancy automated install process. Instead relies on installers and direct user intervention (drag-drop .app bundle on mac). 
Doesn't consider updates delivered over TLS to be safe unless they are also signed (unnecessary redundancy)