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

Signed-off-by: auchri <auer.chrisi@gmx.net>
Этот коммит содержится в:
Christoph 2017-09-04 21:46:57 +02:00 коммит произвёл GitHub
родитель 917be105ac
Коммит ea082e9604
1 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

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