MinGW-w64 cross compiler build script for i686 (Win32) and x86_64 (Win64).
mingw-w64-build should run on Ubuntu, Cygwin, macOS (with Homebrew), and other Bash based shells.
mingw-w64-build is licensed under the GNU GPL 3.0 or later. A copy of the license can be found in the LICENSE file.
mingw-w64-build --help for build options.