mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Add release channels for autoupdater (#2362)
Fetch releases from github and find corresponding installers on bintray
This commit is contained in:
parent
b9cd942308
commit
7373819c32
16 changed files with 507 additions and 237 deletions
|
|
@ -4,8 +4,8 @@
|
|||
#include <QtNetwork>
|
||||
#include <QProgressDialog>
|
||||
|
||||
#include "update_checker.h"
|
||||
#include "update_downloader.h"
|
||||
class Release;
|
||||
|
||||
class DlgUpdate : public QDialog {
|
||||
Q_OBJECT
|
||||
|
|
@ -13,7 +13,7 @@ public:
|
|||
DlgUpdate(QWidget *parent);
|
||||
|
||||
private slots:
|
||||
void finishedUpdateCheck(bool needToUpdate, bool isCompatible, QVariantMap *build);
|
||||
void finishedUpdateCheck(bool needToUpdate, bool isCompatible, Release *release);
|
||||
void gotoDownloadPage();
|
||||
void downloadUpdate();
|
||||
void updateCheckError(QString errorString);
|
||||
|
|
@ -27,11 +27,10 @@ private:
|
|||
void enableOkButton(bool enable);
|
||||
void beginUpdateCheck();
|
||||
void setLabel(QString text);
|
||||
QLabel *text;
|
||||
QLabel *statusLabel, *descriptionLabel;
|
||||
QProgressBar *progress;
|
||||
QPushButton *manualDownload, *gotoDownload, *ok;
|
||||
QPushButton *cancel;
|
||||
UpdateChecker *uChecker;
|
||||
UpdateDownloader *uDownloader;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue