From 4908d48498322289600ca05ae72491cb86dea84d Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 10 Jul 2023 15:44:23 +0200 Subject: [PATCH] (Windows) Added workarounds for filesystem race conditions to the MinGW dependency setup script --- tools/Windows_dependencies_setup_MinGW.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/Windows_dependencies_setup_MinGW.sh b/tools/Windows_dependencies_setup_MinGW.sh index 003aed118..351e73f31 100644 --- a/tools/Windows_dependencies_setup_MinGW.sh +++ b/tools/Windows_dependencies_setup_MinGW.sh @@ -25,6 +25,9 @@ rm -rf curl* curl -O https://curl.se/windows/dl-8.1.2_3/curl-8.1.2_3-win64-mingw.zip unzip curl-8.1.2_3-win64-mingw.zip +# Needed due to some kind of file system race condition that sometimes occurs on Windows. +sleep 2 + if [ ! -d curl-8.1.2_3-win64-mingw ]; then echo "curl directory is missing, aborting." exit @@ -40,6 +43,8 @@ rm -rf glew* curl -LO https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip unzip glew-2.1.0.zip +sleep 2 + if [ ! -d glew-2.1.0 ]; then echo "GLEW directory is missing, aborting." exit @@ -123,8 +128,9 @@ rm -rf SDL2* curl -O https://libsdl.org/release/SDL2-devel-2.28.1-mingw.tar.gz tar xvzf SDL2-devel-2.28.1-mingw.tar.gz + # Needed due to some kind of file system race condition that sometimes occurs on Windows. -sleep 1 +sleep 2 if [ ! -d SDL2-2.28.1 ]; then echo "SDL directory is missing, aborting." @@ -144,6 +150,8 @@ rm -rf ffmpeg* curl -LO https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2023-05-31-12-47/ffmpeg-n6.0-22-g549430e14d-win64-gpl-shared-6.0.zip unzip ffmpeg-n6.0-22-g549430e14d-win64-gpl-shared-6.0.zip +sleep 2 + if [ ! -d ffmpeg-n6.0-22-g549430e14d-win64-gpl-shared-6.0 ]; then echo "FFmpeg directory is missing, aborting." exit