Skip to content

Commit

Permalink
Add warning about wine binfmt support
Browse files Browse the repository at this point in the history
  • Loading branch information
hpvb committed Feb 11, 2021
1 parent 773423d commit aaa066f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ if [ -z $podman ]; then
exit 1
fi

if ! grep -rq '/usr/bin/wine' /proc/sys/fs/binfmt_misc; then
echo "binfmt_misc support for PE pointing to /usr/bin/wine must be enabled to build the Windows mono container."
echo "This can be done by:"
echo 'mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc'
echo 'echo ":windows:M::MZ::/usr/bin/wine:" > /proc/sys/fs/binfmt_misc/register'
echo 'echo ":windowsPE:M::PE::/usr/bin/wine:" > /proc/sys/fs/binfmt_misc/register'
exit 1
fi

if [ -z "$1" -o -z "$2" ]; then
echo "Usage: $0 <godot branch> <mono version> [<mono branch> <mono commit hash>]"
echo
Expand Down

0 comments on commit aaa066f

Please sign in to comment.