1@ECHO OFF 2SET ROOT_DIR=%CD% 3 4powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget https://storage.googleapis.com/chrome-infra/depot_tools.zip -OutFile depot_tools.zip " 57z -bd x %ROOT_DIR%\depot_tools.zip -odepot_tools 6powershell -Command "depot_tools\update_depot_tools" 7SET BUFF_PATH=%PATH% 8SET DEPOT_TOOLS=%ROOT_DIR%\depot_tools 9set PATH=%DEPOT_TOOLS%;%BUFF_PATH% 10 11mkdir %ROOT_DIR%\src\breakpad 12CD %ROOT_DIR%\src\breakpad 13powershell -Command "fetch breakpad" 14powershell -Command "gclient sync" 15CD %ROOT_DIR%\src\breakpad\src 16powershell -Command "git reset --hard 756daa536ad819eff80172aaab262fb71d1e89fd" 17 18CD %ROOT_DIR%\src\breakpad\src\src\client\windows 19DEL %CD%\breakpad_client.gyp 20DEL %CD%\breakpad_client.sln 21DEL %CD%\common.vcxproj 22DEL %CD%\common.vcxproj.filters 23DEL %CD%\build_all.vcxproj 24COPY %ROOT_DIR%\scripts\breakpad_client.gyp %CD% 25 26CD %ROOT_DIR%\src\breakpad\src\src 27SET GYP_MSVS_VERSION=2017 28powershell -Command "tools\gyp\gyp.bat --no-circular-check client\windows\breakpad_client.gyp -Dwin_release_RuntimeLibrary=2 -Dwin_debug_RuntimeLibrary=2 -Dplatform=%ARCH% -Dconfiguration=release" 29devenv client\windows\breakpad_client.sln /upgrade 30 31set PATH=%BUFF_PATH% 32msbuild /m %CD%\client\windows\breakpad_client.sln /p:Configuration=release /p:Platform=%ARCH% || exit /b 1 33CD %ROOT_DIR% 34