2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

closed beta version with autoupdate added

This commit is contained in:
John Preston
2015-12-03 21:16:34 +03:00
parent 2d53ab88a0
commit a6cf42d3ad
32 changed files with 644 additions and 267 deletions

View File

@@ -29,6 +29,10 @@ Qt::LayoutDirection gLangDir = gRtl ? Qt::RightToLeft : Qt::LeftToRight;
mtpDcOptions gDcOptions;
bool gDevVersion = DevVersion;
uint64 gBetaVersion = BETA_VERSION;
uint64 gRealBetaVersion = BETA_VERSION;
QByteArray gBetaPrivateKey;
bool gTestMode = false;
bool gDebug = false;
bool gManyInstance = false;
@@ -143,6 +147,7 @@ QUrl gUpdateURL = QUrl(qsl("http://tdesktop.com/linux/tupdates/current"));
#else
#error Unknown platform
#endif
bool gIsElCapitan = false;
bool gContactsReceived = false;
bool gDialogsReceived = false;
@@ -168,8 +173,10 @@ ReportSpamStatuses gReportSpamStatuses;
void settingsParseArgs(int argc, char *argv[]) {
#ifdef Q_OS_MAC
gIsElCapitan = (QSysInfo::macVersion() >= QSysInfo::MV_10_11);
if (QSysInfo::macVersion() < QSysInfo::MV_10_8) {
gUpdateURL = QUrl(qsl("http://tdesktop.com/mac32/tupdates/current"));
gPlatform = dbipMacOld;
} else {
gCustomNotifies = false;
}