From cce47c5c50be59635e693312cb75af439147a552 Mon Sep 17 00:00:00 2001 From: Jan Rose Date: Wed, 11 Nov 2026 16:21:25 +0000 Subject: [PATCH] Recognize Windows POSIX shell environments Recognize MINGW, MSYS, and Cygwin names with their corresponding drive mappings. Preserve custom target selection from the parent branch. Map i686 to the existing _386 naming convention; current releases do not publish that archive. Closes #71 Co-authored-by: Isaac --- install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 3cded4b5..181a0955 100755 --- a/install.sh +++ b/install.sh @@ -23,10 +23,14 @@ Darwin) FILE="${FILE}_darwin" TARGET="/usr/local/bin" ;; -MINGW64_NT) +MINGW64_NT|MINGW32_NT|MSYS_NT) FILE="${FILE}_windows" TARGET="/c/Windows" ;; +CYGWIN_NT) + FILE="${FILE}_windows" + TARGET="/cygdrive/c/Windows" + ;; *) echo "Unknown operating system: $OS" exit 1 @@ -70,7 +74,7 @@ fi # Include architecture in file name. ARCH="$(uname -m)" case "$ARCH" in -i386) +i386|i686) FILE="${FILE}_386" ;; x86_64)