Implement automatic and manual updates on macOS
This commit is contained in:
@ -18,6 +18,10 @@
|
||||
#include "net/NetJob.h"
|
||||
#include "GoUpdate.h"
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
#include "updater/macsparkle/SparkleUpdater.h"
|
||||
#endif
|
||||
|
||||
class UpdateChecker : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
@ -54,6 +58,13 @@ public:
|
||||
*/
|
||||
bool hasChannels() const;
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
/*!
|
||||
* Returns a pointer to the Sparkle updater.
|
||||
*/
|
||||
SparkleUpdater *getSparkleUpdater();
|
||||
#endif
|
||||
|
||||
signals:
|
||||
//! Signal emitted when an update is available. Passes the URL for the repo and the ID and name for the version.
|
||||
void updateAvailable(GoUpdate::Status status);
|
||||
@ -117,5 +128,9 @@ private:
|
||||
QString m_currentRepoUrl;
|
||||
|
||||
QString m_newRepoUrl;
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
SparkleUpdater *m_sparkleUpdater = new SparkleUpdater();
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user