We ask the developer to obtain his own api credentials, because
the bundled 'api_id' / 'api_hash' are strictly limited by the server.
The old credentials still could be used for test purposes,
but the developer will need to explicitly opt-in to use them.
This is a very simple change that allow people to build Telegram like AppVeyor does it, but not in C:\TBuild (often C is "System Reserved" and cannot be used). Instead you can build it anywhere (from the visual studio 2017 x86 command prompt) like this:
>set BUILD_DIR=%CD%
>git clone https://github.com/telegramdesktop/tdesktop.git
>cd tdesktop
>.\.appveyor\install.bat
>msbuild Telegram\Telegram.sln /property:Configuration=Debug /p:Platform=Win32
Some notes:
- I replaced all C:\TBuild with %BUILD_DIR%, even if it is decided not to merge this, keep that.
- %BUILD_DIR%\Libraries\prepare.bat might fail to extract the 7z Qt libraries for some reason (even if 7z.exe is in PATH) this has not been fixed
Signed-off-by: Duncan Ogilvie mr.exodia.tpodt@gmail.com (github: mrexodia)
Also implement build defines for Windows
Set TELEGRAM_BUILD_DEFINES before calling gyp/refresh.bat
Fix#3000
Signed-off-by: Christoph <auer.chrisi@gmx.net>