feat(client): 迁移Hub更新客户端实现
This commit is contained in:
@@ -24,7 +24,8 @@ class UpdaterLogic : public QObject
|
||||
public:
|
||||
explicit UpdaterLogic(QObject* parent = nullptr);
|
||||
|
||||
void getManifest(const QString& appId, const QString& channel, const QString& targetVer, int versionId);
|
||||
void getManifest(const QString& appId, const QString& channel, const QString& targetVer,
|
||||
int versionId, const QString& releaseId = QString());
|
||||
bool verifyManifestSignature(const QString& publicKeyPath = "config/manifest_public_key.pem") const;
|
||||
bool validateLocalFiles(const QString& stagingDir, const QString& installedDir = QString()) const;
|
||||
bool saveManifestCache(const QString& cacheDir) const;
|
||||
@@ -61,8 +62,13 @@ private:
|
||||
|
||||
HttpHelper m_http;
|
||||
QString m_serverAddr;
|
||||
QJsonObject m_manifest;
|
||||
QString m_manifestText;
|
||||
QJsonObject m_manifest;
|
||||
QString m_manifestText;
|
||||
QString m_manifestSha256;
|
||||
QString m_manifestSignature;
|
||||
QString m_manifestSignatureAlg;
|
||||
QString m_manifestKeyId;
|
||||
bool m_manifestSigned = false;
|
||||
QList<FileDownloadItem> m_fileItems;
|
||||
bool m_downloadAllOk = false;
|
||||
qint64 m_downloadTotalBytes = 0;
|
||||
|
||||
Reference in New Issue
Block a user