Skip to content

Commit

Permalink
install mingw on docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Jan 9, 2025
1 parent 28d2b80 commit 4d62b3f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/docker/ubuntu18.04/c4core-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions .github/docker/ubuntu22.04/c4core-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d62b3f

Please sign in to comment.