2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Divide autoupdate paths for OS versions.

This commit is contained in:
John Preston
2019-09-10 01:21:44 +03:00
parent f9d10094ac
commit f463d3ec6d
5 changed files with 54 additions and 18 deletions

View File

@@ -42,4 +42,18 @@ QDate WhenSystemBecomesOutdated() {
return QDate();
}
int AutoUpdateVersion() {
return 2;
}
QString AutoUpdateKey() {
if (IsLinux32Bit()) {
return "linux32";
} else if (IsLinux64Bit()) {
return "linux";
} else {
Unexpected("Platform in AutoUpdateKey.");
}
}
} // namespace Platform