mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 02:01:40 -05:00
version 0.7.9
This commit is contained in:
parent
da48c2141c
commit
6d8125be19
9 changed files with 21 additions and 25 deletions
|
@ -1,8 +1,8 @@
|
|||
@echo OFF
|
||||
|
||||
set "AppVersionStrSmall=0.7.8"
|
||||
set "AppVersionStr=0.7.8"
|
||||
set "AppVersionStrFull=0.7.8.0"
|
||||
set "AppVersionStrSmall=0.7.9"
|
||||
set "AppVersionStr=0.7.9"
|
||||
set "AppVersionStrFull=0.7.9.0"
|
||||
|
||||
echo.
|
||||
echo Preparing version %AppVersionStr%..
|
||||
|
|
|
@ -17,8 +17,8 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
static const int32 AppVersion = 7008;
|
||||
static const wchar_t *AppVersionStr = L"0.7.8";
|
||||
static const int32 AppVersion = 7009;
|
||||
static const wchar_t *AppVersionStr = L"0.7.9";
|
||||
|
||||
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
|
||||
static const wchar_t *AppName = L"Telegram Desktop";
|
||||
|
@ -165,7 +165,7 @@ static const BuiltInDc _builtInDcs[] = {
|
|||
};
|
||||
|
||||
static const BuiltInDc _builtInTestDcs[] = {
|
||||
{ 1, "173.240.5.253", 443 },
|
||||
{ 1, "149.154.175.10", 443 },
|
||||
{ 2, "149.154.167.40", 443 },
|
||||
{ 3, "174.140.142.5", 443 }
|
||||
};
|
||||
|
|
|
@ -212,6 +212,10 @@ void logsInit() {
|
|||
}
|
||||
cForceWorkingDir(QDir(cWorkingDir()).absolutePath() + '/');
|
||||
|
||||
if (QFile(cWorkingDir() + qsl("tdata/withtestmode")).exists()) {
|
||||
cSetTestMode(true);
|
||||
LOG(("Switched to test mode!"));
|
||||
}
|
||||
#ifdef Q_OS_WIN
|
||||
if (cWorkingDir() == psAppDataPath()) { // fix old "Telegram Win (Unofficial)" version
|
||||
moveOldDataFiles(psAppDataPathOld());
|
||||
|
|
|
@ -127,8 +127,8 @@ void settingsParseArgs(int argc, char *argv[]) {
|
|||
gExeDir = psCurrentExeDirectory(argc, argv);
|
||||
gExeName = psCurrentExeName(argc, argv);
|
||||
for (int32 i = 0; i < argc; ++i) {
|
||||
if (string("-release") == argv[i]) {
|
||||
gTestMode = false;
|
||||
if (string("-testmode") == argv[i]) {
|
||||
gTestMode = true;
|
||||
} else if (string("-debug") == argv[i]) {
|
||||
gDebug = true;
|
||||
} else if (string("-many") == argv[i]) {
|
||||
|
|
|
@ -31,15 +31,6 @@ inline void cSetDebug(bool debug) {
|
|||
gDebug = debug;
|
||||
}
|
||||
|
||||
extern bool gTestMode;
|
||||
inline bool cTestMode() {
|
||||
#ifdef _DEBUG
|
||||
return gTestMode;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#define DeclareReadSetting(Type, Name) extern Type g##Name; \
|
||||
inline const Type &c##Name() { \
|
||||
return g##Name; \
|
||||
|
@ -50,6 +41,7 @@ inline void cSet##Name(const Type &Name) { \
|
|||
g##Name = Name; \
|
||||
}
|
||||
|
||||
DeclareSetting(bool, TestMode);
|
||||
DeclareSetting(QString, LoggedPhoneNumber);
|
||||
DeclareReadSetting(uint32, ConnectionsInSession);
|
||||
DeclareSetting(bool, AutoStart);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.7.8</string>
|
||||
<string>0.7.9</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
|
|
Binary file not shown.
|
@ -1627,7 +1627,7 @@
|
|||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 0.7.8;
|
||||
CURRENT_PROJECT_VERSION = 0.7.9;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
|
@ -1645,7 +1645,7 @@
|
|||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
CURRENT_PROJECT_VERSION = 0.7.8;
|
||||
CURRENT_PROJECT_VERSION = 0.7.9;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = fast;
|
||||
GCC_PREFIX_HEADER = ./SourceFiles/stdafx.h;
|
||||
|
@ -1671,10 +1671,10 @@
|
|||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 0.7.8;
|
||||
CURRENT_PROJECT_VERSION = 0.7.9;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
DYLIB_COMPATIBILITY_VERSION = 0.7;
|
||||
DYLIB_CURRENT_VERSION = 0.7.8;
|
||||
DYLIB_CURRENT_VERSION = 0.7.9;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
|
@ -1814,10 +1814,10 @@
|
|||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 0.7.8;
|
||||
CURRENT_PROJECT_VERSION = 0.7.9;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
DYLIB_COMPATIBILITY_VERSION = 0.7;
|
||||
DYLIB_CURRENT_VERSION = 0.7.8;
|
||||
DYLIB_CURRENT_VERSION = 0.7.9;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
FRAMEWORK_SEARCH_PATHS = "";
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
echo 7008 0.7.8
|
||||
echo 7009 0.7.9
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue