fixed autoupdate and scripts for beta, new beta version 9014001

This commit is contained in:
John Preston 2015-12-04 14:25:29 +03:00
parent 2ed9d68b46
commit 8552b8421b
4 changed files with 6 additions and 3 deletions

View File

@ -95,7 +95,10 @@ if %BetaVersion% neq 0 (
)
FOR /F "tokens=1* delims= " %%i in (%ReleasePath%\%BetaKeyFile%) do set "BetaSignature=%%i"
)
if %errorlevel% neq 0 goto error
if %BetaVersion% neq 0 (
set "UpdateFile=%UpdateFile%_%BetaSignature%"
set "PortableFile=tbeta%BetaVersion%_%BetaSignature%.zip"
)

View File

@ -497,7 +497,6 @@ bool checkReadyUpdate() {
UpdateDownloader::clearAll();
return false;
}
fVersion.close();
if (versionNum == 0x7FFFFFFF) { // beta version
quint64 betaVersion = 0;
if (fVersion.read((char*)&betaVersion, sizeof(quint64)) != sizeof(quint64)) {
@ -515,6 +514,7 @@ bool checkReadyUpdate() {
UpdateDownloader::clearAll();
return false;
}
fVersion.close();
}
#ifdef Q_OS_WIN

View File

@ -23,7 +23,7 @@ Copyright (c) 2014-2015 John Preston, https://desktop.telegram.org
static const int32 AppVersion = 9014;
static const wchar_t *AppVersionStr = L"0.9.14";
static const bool DevVersion = true;
#define BETA_VERSION (9014002ULL) // just comment this line to build public version
#define BETA_VERSION (9014001ULL) // just comment this line to build public version
static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)";
static const wchar_t *AppName = L"Telegram Desktop";

View File

@ -3,4 +3,4 @@ AppVersionStrMajor 0.9
AppVersionStrSmall 0.9.14
AppVersionStr 0.9.14
DevChannel 1
BetaVersion 9014002
BetaVersion 9014001