Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
修复检测新版本功能
Browse files Browse the repository at this point in the history
  • Loading branch information
skykeyjoker committed Oct 9, 2021
1 parent 188bd79 commit c854baa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ASoulNotification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ QString checkForUpdate(const QString& version)
Json j;
QNetworkAccessManager manager;
QNetworkRequest request;
request.setUrl(QUrl("https://cdn.jsdelivr.net/gh/skykeyjoker/A-Soul-Notification@master/version.json"));
request.setUrl(QUrl("https://cdn.jsdelivr.net/gh/skykeyjoker/A-Soul-Notification/version.json"));

QEventLoop eventLoop;
QObject::connect(&manager, SIGNAL(finished(QNetworkReply*)), &eventLoop, SLOT(quit()));
Expand Down Expand Up @@ -134,11 +134,11 @@ int main(int argc, char* argv[])

/* 初始化应用信息 */
app.setApplicationName("A-Soul Notification");
app.setApplicationVersion("1.2.0");
app.setApplicationVersion("1.2.1");
/* init wintoast */
WinToast::instance()->setAppName(L"A-Soul Notification");
WinToast::instance()->setAppUserModelId(
WinToast::configureAUMI(L"Skykey", L"A-Soul Notification", L"A-Soul Notification", L"1.1.0"));
WinToast::configureAUMI(L"Skykey", L"A-Soul Notification", L"A-Soul Notification", L"1.2.1"));
if (!WinToast::instance()->initialize()) {
qDebug() << "Error, your system in not compatible!";
}
Expand Down
4 changes: 4 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"versions": [
{
"version": "v1.2.1",
"url": "https://github.com/skykeyjoker/A-Soul-Notification/releases/tag/v1.2.1"
},
{
"version": "v1.2.0",
"url": "https://github.com/skykeyjoker/A-Soul-Notification/releases/tag/v1.2.0"
Expand Down

0 comments on commit c854baa

Please sign in to comment.