From 4d62b3f2601e54552b635c5f2786de30833f1750 Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Thu, 9 Jan 2025 20:06:19 +0000 Subject: [PATCH] install mingw on docker images --- .github/docker/ubuntu18.04/c4core-install | 16 ++++++++++++++++ .github/docker/ubuntu22.04/c4core-install | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/.github/docker/ubuntu18.04/c4core-install b/.github/docker/ubuntu18.04/c4core-install index 67ff18a2..373aa854 100755 --- a/.github/docker/ubuntu18.04/c4core-install +++ b/.github/docker/ubuntu18.04/c4core-install @@ -347,6 +347,22 @@ case $what in apt-get install -y \ qemu ;; + mingw) + apt-get update + apt-get install -y \ + gcc-mingw-w64-x86-64 \ + g++-mingw-w64-x86-64 \ + mingw-w64 \ + mingw-w64-x86-64-dev \ + mingw-w64-tools + update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix + update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix + ;; + wine) + apt-get update + apt-get install -y wine + # run exe with env WINEPATH="/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32;/usr/x86_64-w64-mingw32/lib" wine exe + ;; *) echo "unknown package: $what" exit 1 diff --git a/.github/docker/ubuntu22.04/c4core-install b/.github/docker/ubuntu22.04/c4core-install index c6c276ae..2876ab05 100755 --- a/.github/docker/ubuntu22.04/c4core-install +++ b/.github/docker/ubuntu22.04/c4core-install @@ -306,6 +306,22 @@ case $what in apt-get install -y \ qemu ;; + mingw) + apt-get update + apt-get install -y \ + gcc-mingw-w64-x86-64 \ + g++-mingw-w64-x86-64 \ + mingw-w64 \ + mingw-w64-x86-64-dev \ + mingw-w64-tools + update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix + update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix + ;; + wine) + apt-get update + apt-get install -y wine + # run exe with env WINEPATH="/usr/lib/gcc/x86_64-w64-mingw32/7.3-win32;/usr/x86_64-w64-mingw32/lib" wine exe + ;; *) echo "unknown package: $what" exit 1