From 1b0ec5b90e9ee7698e648d7e8394d57ba1549aa3 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Thu, 4 Dec 2025 17:50:58 -0500 Subject: [PATCH] Handle already-installed MSYS2 in build script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check if MSYS2 is already present by looking for the bash executable, even if winget reports it's already installed. This allows the script to continue with GCC installation instead of failing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- scripts/build.bat | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/build.bat b/scripts/build.bat index 901dd24..7b0bd7e 100644 --- a/scripts/build.bat +++ b/scripts/build.bat @@ -94,6 +94,11 @@ if !GCC_CHECK! neq 0 ( winget install -e --id=MSYS2.MSYS2 set MSYS2_INSTALL_RESULT=!ERRORLEVEL! + REM Check if MSYS2 is installed (either newly installed or already present) + if exist "C:\msys64\usr\bin\bash.exe" ( + set MSYS2_INSTALL_RESULT=0 + ) + if !MSYS2_INSTALL_RESULT! equ 0 ( echo [OK] MSYS2 installed successfully! echo.