From c735b6655d843352d64684cd4d0c1342a101c414 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 31 Jul 2015 16:43:18 +0300 Subject: [PATCH] fixed autoupdater, 0.8.42.dev version --- Telegram/PrepareWin.bat | 10 +++++----- Telegram/SourceFiles/autoupdater.cpp | 2 +- Telegram/SourceFiles/config.h | 6 +++--- Telegram/Telegram.plist | 2 +- Telegram/Telegram.rc | Bin 5540 -> 5540 bytes Telegram/Telegram.xcodeproj/project.pbxproj | 12 ++++++------ Telegram/Version.sh | 2 +- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Telegram/PrepareWin.bat b/Telegram/PrepareWin.bat index 04bd71215..793a4a948 100644 --- a/Telegram/PrepareWin.bat +++ b/Telegram/PrepareWin.bat @@ -1,11 +1,11 @@ @echo OFF set "AppVersionStrMajor=0.8" -set "AppVersion=8043" -set "AppVersionStrSmall=0.8.43" -set "AppVersionStr=0.8.43" -set "AppVersionStrFull=0.8.43.0" -set "DevChannel=0" +set "AppVersion=8042" +set "AppVersionStrSmall=0.8.42" +set "AppVersionStr=0.8.42" +set "AppVersionStrFull=0.8.42.0" +set "DevChannel=1" if %DevChannel% neq 0 goto preparedev diff --git a/Telegram/SourceFiles/autoupdater.cpp b/Telegram/SourceFiles/autoupdater.cpp index ee6658e17..2d4771ce2 100644 --- a/Telegram/SourceFiles/autoupdater.cpp +++ b/Telegram/SourceFiles/autoupdater.cpp @@ -264,7 +264,7 @@ void UpdateDownloader::unpackUpdate() { if (RSA_verify(NID_sha1, (const uchar*)(compressed.constData() + hSigLen), hShaLen, (const uchar*)(compressed.constData()), hSigLen, pbKey) != 1) { // verify signature RSA_free(pbKey); if (cDevVersion()) { // try other public key, if we are in dev version - RSA *pbKey = PEM_read_bio_RSAPublicKey(BIO_new_mem_buf(const_cast(DevVersion ? UpdatesPublicKey : UpdatesPublicDevKey), -1), 0, 0, 0); + pbKey = PEM_read_bio_RSAPublicKey(BIO_new_mem_buf(const_cast(DevVersion ? UpdatesPublicKey : UpdatesPublicDevKey), -1), 0, 0, 0); if (!pbKey) { LOG(("Update Error: cant read public rsa key!")); return fatalFail(); diff --git a/Telegram/SourceFiles/config.h b/Telegram/SourceFiles/config.h index e4f6476b7..5215beaf0 100644 --- a/Telegram/SourceFiles/config.h +++ b/Telegram/SourceFiles/config.h @@ -17,9 +17,9 @@ Copyright (c) 2014 John Preston, https://desktop.telegram.org */ #pragma once -static const int32 AppVersion = 8043; -static const wchar_t *AppVersionStr = L"0.8.43"; -static const bool DevVersion = false; +static const int32 AppVersion = 8042; +static const wchar_t *AppVersionStr = L"0.8.42"; +static const bool DevVersion = true; static const wchar_t *AppNameOld = L"Telegram Win (Unofficial)"; static const wchar_t *AppName = L"Telegram Desktop"; diff --git a/Telegram/Telegram.plist b/Telegram/Telegram.plist index e13565542..72088f0df 100644 --- a/Telegram/Telegram.plist +++ b/Telegram/Telegram.plist @@ -11,7 +11,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.8.43 + 0.8.42 LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) CFBundleSignature diff --git a/Telegram/Telegram.rc b/Telegram/Telegram.rc index e61aa8e03cf8c5391d3f7fcddd28faae10c2faa5..03fbda89e5b4e9378d4b8d93dc94a6e83a6de0cc 100644 GIT binary patch delta 53 zcmZ3Yy+nIM5ig_B