Use new updates.json
Some notable changes: * Direct links. This will allow upload updates as release asset, which is faster. * Minify JSON on publish, pretty-printed JSON in repo. This will make work with JSON files easier, while users will still have minified versions.
This commit is contained in:
parent
6cba1d1b65
commit
3fa2e6ae8b
1 changed files with 2 additions and 2 deletions
|
|
@ -613,7 +613,7 @@ HttpChecker::HttpChecker(bool testing) : Checker(testing) {
|
||||||
|
|
||||||
void HttpChecker::start() {
|
void HttpChecker::start() {
|
||||||
const auto path = Local::readAutoupdatePrefix()
|
const auto path = Local::readAutoupdatePrefix()
|
||||||
+ qstr("/current");
|
+ qstr("/updates.json");
|
||||||
auto url = QUrl(path);
|
auto url = QUrl(path);
|
||||||
DEBUG_LOG(("Update Info: requesting update state"));
|
DEBUG_LOG(("Update Info: requesting update state"));
|
||||||
const auto request = QNetworkRequest(url);
|
const auto request = QNetworkRequest(url);
|
||||||
|
|
@ -726,7 +726,7 @@ std::optional<QString> HttpChecker::parseResponse(
|
||||||
return validateLatestUrl(
|
return validateLatestUrl(
|
||||||
bestAvailableVersion,
|
bestAvailableVersion,
|
||||||
bestIsAvailableAlpha,
|
bestIsAvailableAlpha,
|
||||||
Local::readAutoupdatePrefix() + bestLink);
|
bestLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString HttpChecker::validateLatestUrl(
|
QString HttpChecker::validateLatestUrl(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue