Using shell script as build command for build-wrapper-win-x86-64

I have a shell script that I use to build my project on Windows using MSYS2. When I call it with the build wrapper, it immediately fails with the following message:

> build-wrapper-win-x86-64 --out-dir ../src/bw_outputs ../src/contrib/build.sh
[SONARSOURCE BUILD-WRAPPER] failed to execute ../src/contrib/build.sh: %1 is not a valid Win32 application.

Calling my build script manually without the build wrapper works fine. I am using build wrapper version 6.2 (win-x86-64). Is there a work around for this?

Hi @SakeebHossain,

have you tried something like:

build-wrapper-win-x86-64 --out-dir ../src/bw_outputs bash ../src/contrib/build.sh