From c60ebdc237f782d02cfcd710c7c37fd066b1ec5e Mon Sep 17 00:00:00 2001 From: DarshanBPatel Date: Wed, 30 Oct 2024 15:44:57 +0530 Subject: [PATCH 1/2] feat: remain windows support --- scripts/windows_setup.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/windows_setup.sh b/scripts/windows_setup.sh index 02b9bdc4c4..3af4a93588 100644 --- a/scripts/windows_setup.sh +++ b/scripts/windows_setup.sh @@ -32,16 +32,23 @@ build_component() { local dir="$1" local command="$2" local name="$3" - + echo "Building $name" if [ -d "$dir" ]; then change_directory "$dir" execute_command "$command" + # Execute command but ignore errors containing 'upx' + if ! eval "$command" 2>&1 | tee /tmp/build.log; then + if grep -q "upx" /tmp/build.log; then + echo "⚠ Warning: UPX compression skipped (not installed)" + else + echo "✗ Command failed" + exit 1 + fi + fi change_directory - > /dev/null else echo "✗ $name directory not found: $dir" - exit 1 - fi } echo "1. Updating submodules" From 15e3df35ac90a43a8cb7ed0e623be51e4419b04a Mon Sep 17 00:00:00 2001 From: DarshanBPatel Date: Wed, 30 Oct 2024 15:58:50 +0530 Subject: [PATCH 2/2] feat: remain windows support --- scripts/windows_setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/windows_setup.sh b/scripts/windows_setup.sh index 3af4a93588..0b33edb74a 100644 --- a/scripts/windows_setup.sh +++ b/scripts/windows_setup.sh @@ -49,6 +49,8 @@ build_component() { change_directory - > /dev/null else echo "✗ $name directory not found: $dir" + exit 1 + fi } echo "1. Updating submodules"