@@ -137,10 +137,14 @@ echo "==> Setting up nghttp2..."
137137if [ " $OS " = " Darwin" ] && command -v brew & > /dev/null && brew list libnghttp2 & > /dev/null; then
138138 echo " ✓ Using Homebrew's libnghttp2"
139139 echo " Location: $( brew --prefix libnghttp2) "
140- # On Windows, use vcpkg or skip (to be implemented)
140+ # On Windows with MSYS2, use the MSYS2 package
141+ elif [ " $OS " = " Windows" ] && [ -d " /mingw64/include/nghttp2" ]; then
142+ echo " ✓ Using MSYS2's nghttp2"
143+ echo " Location: /mingw64"
144+ # On Windows without MSYS2, skip
141145elif [ " $OS " = " Windows" ]; then
142- echo " ⊘ nghttp2 on Windows requires manual setup via vcpkg"
143- echo " Run: vcpkg install nghttp2:x64-windows "
146+ echo " ⊘ nghttp2 on Windows requires MSYS2 or vcpkg"
147+ echo " Run: pacman -S mingw-w64-x86_64-nghttp2 (MSYS2) "
144148else
145149 # Build from source on Linux or if Homebrew version not available
146150 if [ ! -d " nghttp2" ]; then
@@ -194,8 +198,10 @@ if [ "$OS" = "Linux" ]; then
194198fi
195199if [ " $OS " = " Darwin" ] && command -v brew & > /dev/null && brew list libnghttp2 & > /dev/null; then
196200 echo " ✓ nghttp2: $( brew --prefix libnghttp2) (Homebrew)"
201+ elif [ " $OS " = " Windows" ] && [ -d " /mingw64/include/nghttp2" ]; then
202+ echo " ✓ nghttp2: /mingw64 (MSYS2)"
197203elif [ " $OS " = " Windows" ]; then
198- echo " ⊘ nghttp2: Install via vcpkg (nghttp2:x64-windows )"
204+ echo " ⊘ nghttp2: Install via MSYS2 (mingw-w64-x86_64-nghttp2 )"
199205else
200206 echo " ✓ nghttp2: $VENDOR_DIR /nghttp2/install"
201207fi
0 commit comments