github.com/confluentinc/confluent-kafka-go@v1.9.2/mk/setup-msys2-mingw64.sh (about) 1 #!/bin/bash 2 # From https://docs.travis-ci.com/user/reference/windows/#how-do-i-use-msys2 3 4 set -e 5 6 [[ ! -f C:/tools/msys64/msys2_shell.cmd ]] && rm -rf C:/tools/msys64 7 choco uninstall -y mingw 8 choco upgrade --no-progress -y msys2 9 export msys2='cmd //C RefreshEnv.cmd ' 10 export msys2+='& set MSYS=winsymlinks:nativestrict ' 11 export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start' 12 export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" 13 export msys2+=" -msys2 -c "\"\$@"\" --" 14 $msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-toolchain 15 ## Install more MSYS2 packages from https://packages.msys2.org/base here 16 taskkill //IM gpg-agent.exe //F || true # https://travis-ci.community/t/4967