Created
April 26, 2016 09:09
-
-
Save shamun/8ac7ae3b6807468baeea98b1f1ed0ad4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /d %~dp0 | |
set "PATH=" | |
set PATH=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem | |
set PATH=%PATH%;C:\programs\7-zip\x64 | |
set CURL="C:\msys64\usr\bin\curl" | |
IF NOT EXIST "%~dp0\depot_tools" ( | |
mkdir %~dp0\depot_tools | |
cd /d %~dp0\depot_tools | |
%CURL% -o depot_tools.tar.gz --insecure -L ^ | |
https://chromium.googlesource.com/chromium/tools/depot_tools.git/+archive/master.tar.gz | |
7za x "depot_tools.tar.gz" -so | 7za x -aoa -si -ttar -o"%~dp0\depot_tools" >depot_tools_logs.txt 2>&1 | |
) | |
set PATH=%PATH%;%~dp0\depot_tools | |
set DEPOT_TOOLS_WIN_TOOLCHAIN=0 | |
rem GYP_MSVS_VERSION=2013e | |
set GYP_MSVS_VERSION=2015 | |
IF EXIST "%~dp0\depot_tools" ( | |
call gclient | |
) | |
pause | |
exit /b 0 | |
:build_fail | |
echo "build fail" | |
pause | |
exit /b 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment