Retry cloning dep. if prebare.bat is missing (#3861)

Signed-off-by: auchri <auer.chrisi@gmx.net>
This commit is contained in:
Christoph 2017-09-04 21:46:57 +02:00 committed by GitHub
parent 917be105ac
commit ea082e9604
1 changed files with 12 additions and 3 deletions

View File

@ -7,8 +7,6 @@ SET QT_VERSION=5_6_2
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
cd %BUILD_DIR%
call:configureBuild call:configureBuild
call:getDependencies call:getDependencies
call:setupGYP call:setupGYP
@ -23,11 +21,22 @@ GOTO:EOF
echo [INFO] %~1 echo [INFO] %~1
GOTO:EOF GOTO:EOF
:logError
echo [ERROR] %~1
GOTO:EOF
:getDependencies :getDependencies
call:logInfo "Clone dependencies repository" call:logInfo "Clone dependencies repository"
git clone -q --depth 1 --branch=master https://github.com/telegramdesktop/dependencies_windows.git %LIB_DIR% git clone -q --depth 1 --branch=master https://github.com/telegramdesktop/dependencies_windows.git %LIB_DIR%
cd %LIB_DIR% cd %LIB_DIR%
call prepare.bat
if exist prepare.bat (
call prepare.bat
) else (
call:logError "Error cloning dependencies, trying again"
rmdir %LIB_DIR% /S /Q
call:getDependencies
)
GOTO:EOF GOTO:EOF
:setupGYP :setupGYP