diff --git a/Telegram/build/build.bat b/Telegram/build/build.bat index ac8373b99..8d8be3af7 100644 --- a/Telegram/build/build.bat +++ b/Telegram/build/build.bat @@ -117,6 +117,11 @@ echo. echo Version %AppVersionStrFull% build successfull. Preparing.. echo. +if not exist "%SolutionPath%\..\Libraries\breakpad\src\tools\windows\dump_syms\Release\dump_syms.exe" ( + echo Utility dump_syms not found! + exit /b 1 +) + echo Dumping debug symbols.. xcopy "%ReleasePath%\%BinaryName%.exe" "%ReleasePath%\%BinaryName%.exe.exe*" call "%SolutionPath%\..\Libraries\breakpad\src\tools\windows\dump_syms\Release\dump_syms.exe" "%ReleasePath%\%BinaryName%.exe.pdb" > "%ReleasePath%\%BinaryName%.exe.sym" @@ -164,10 +169,10 @@ if %BuildUWP% equ 0 ( for /f ^"usebackq^ eol^=^ ^ delims^=^" %%a in (%ReleasePath%\%BinaryName%.exe.sym) do ( - set "SymbolsHashLine=%%a" - goto symbolslinedone - ) - :symbolslinedone + set "SymbolsHashLine=%%a" + goto symbolslinedone +) +:symbolslinedone FOR /F "tokens=1,2,3,4* delims= " %%i in ("%SymbolsHashLine%") do set "SymbolsHash=%%l" echo Copying %BinaryName%.exe.sym to %DropboxSymbolsPath%\%BinaryName%.exe.pdb\%SymbolsHash% diff --git a/docs/building-msvc.md b/docs/building-msvc.md index 12b2a9b23..aee50ff70 100644 --- a/docs/building-msvc.md +++ b/docs/building-msvc.md @@ -104,7 +104,10 @@ Open **x86 Native Tools Command Prompt for VS 2017.bat**, go to ***BuildPath*** cd ..\.. ninja -C out/Debug common crash_generation_client exception_handler ninja -C out/Release common crash_generation_client exception_handler - cd ..\.. + cd tools\windows\dump_syms + gyp dump_syms.gyp + msbuild dump_syms.vcxproj /property:Configuration=Release + cd ..\..\..\..\.. git clone https://github.com/telegramdesktop/opus.git cd opus