win32-vd_agent/msys2/install.sh
Akihiko Odaki f095b40ee7 CI: Build with MSYS2 on AppVeyor
MSYS2 is an alternative build environment.

MSYS2 has the following advantage compared to Microsoft Visual C++
that is already employed on AppVeyor:
- MSYS2 can pack MSI using autotools

MSYS2 has the following disadvantages compared to Microsoft Visual C++:
- MSYS2 cannot run tests because the autotools scripts currently require
  Wine.
- MSYS2 no longer supports UCRT on the 32-bit platform.

MSYS2 has the following advantages compared to Fedora that is already
employed on GitLab CI:
- The build completely fails on Fedora because libpng tries to link
  the __intrinsic_setjmpex function, which is not available.
- MSYS2 can employ UCRT instead of MSVCRT. For details of UCRT and
  MSVCRT, see: https://www.msys2.org/docs/environments/#msvcrt-vs-ucrt
  Fedora

MSYS2 has the following disadvantage compared to Fedora:
- MSYS2 cannot run tests.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
2025-03-04 14:13:18 +09:00

11 lines
185 B
Bash

#!/bin/bash
a=()
for e in i686 ucrt-x86_64; do
for p in libpng msitools toolchain zlib; do
a+=(mingw-w64-$e-$p)
done
done
exec pacman --noconfirm -S autotools ${a[@]}