From 936e1a24ced26c8e8f8be82ed88193e6c6890325 Mon Sep 17 00:00:00 2001 From: FaithKovi Date: Tue, 29 Aug 2023 09:36:24 +0100 Subject: [PATCH 1/2] add support for windows Signed-off-by: FaithKovi --- install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8baf140..46b7e63 100644 --- a/install.sh +++ b/install.sh @@ -32,8 +32,16 @@ while true; do break elif [[ $system == "CYGWIN" || "$(uname)" == * ]]; then - echo "CYGWIN is not yet supported" - exit + packages=("git" "gh" "curl" "nodejs") + + for package in "${packages[@]}"; do + if ! command -v "$package" &> /dev/null; then + echo "Installing $package..." + apt-cyg install "$package" + else + echo "$package is already installed." + fi + done fi done From 778ecf9499f83a7e901622e794b6e38277f7ee16 Mon Sep 17 00:00:00 2001 From: FaithKovi Date: Fri, 29 Sep 2023 10:31:08 +0100 Subject: [PATCH 2/2] fix package installation for windows Signed-off-by: FaithKovi --- install.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 46b7e63..19ea2f1 100644 --- a/install.sh +++ b/install.sh @@ -32,16 +32,8 @@ while true; do break elif [[ $system == "CYGWIN" || "$(uname)" == * ]]; then - packages=("git" "gh" "curl" "nodejs") - - for package in "${packages[@]}"; do - if ! command -v "$package" &> /dev/null; then - echo "Installing $package..." - apt-cyg install "$package" - else - echo "$package is already installed." - fi - done + iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) + choco install -y git gh curl nodejs fi done