From ea082e960493789ca6ddd97254f79583f2234b61 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 4 Sep 2017 21:46:57 +0200 Subject: [PATCH] Retry cloning dep. if prebare.bat is missing (#3861) Signed-off-by: auchri --- .appveyor/install.bat | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.appveyor/install.bat b/.appveyor/install.bat index c45fef4b84..7def393f8b 100644 --- a/.appveyor/install.bat +++ b/.appveyor/install.bat @@ -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% - 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 :setupGYP