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() {
|
||||
const auto path = Local::readAutoupdatePrefix()
|
||||
+ qstr("/current");
|
||||
+ qstr("/updates.json");
|
||||
auto url = QUrl(path);
|
||||
DEBUG_LOG(("Update Info: requesting update state"));
|
||||
const auto request = QNetworkRequest(url);
|
||||
|
|
@ -726,7 +726,7 @@ std::optional<QString> HttpChecker::parseResponse(
|
|||
return validateLatestUrl(
|
||||
bestAvailableVersion,
|
||||
bestIsAvailableAlpha,
|
||||
Local::readAutoupdatePrefix() + bestLink);
|
||||
bestLink);
|
||||
}
|
||||
|
||||
QString HttpChecker::validateLatestUrl(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue