Skip to content

Commit aaa066f

Browse files
committed
Add warning about wine binfmt support
1 parent 773423d commit aaa066f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.sh

+9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ if [ -z $podman ]; then
88
exit 1
99
fi
1010

11+
if ! grep -rq '/usr/bin/wine' /proc/sys/fs/binfmt_misc; then
12+
echo "binfmt_misc support for PE pointing to /usr/bin/wine must be enabled to build the Windows mono container."
13+
echo "This can be done by:"
14+
echo 'mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc'
15+
echo 'echo ":windows:M::MZ::/usr/bin/wine:" > /proc/sys/fs/binfmt_misc/register'
16+
echo 'echo ":windowsPE:M::PE::/usr/bin/wine:" > /proc/sys/fs/binfmt_misc/register'
17+
exit 1
18+
fi
19+
1120
if [ -z "$1" -o -z "$2" ]; then
1221
echo "Usage: $0 <godot branch> <mono version> [<mono branch> <mono commit hash>]"
1322
echo

0 commit comments

Comments
 (0)