Windows: Set WINEPATH for 32-bit wine to fix Mono build

Symlinking the BCL from `/usr/lib/mono` no longer seems needed
for either architecture, everything is built properly.

Fixes #34.
This commit is contained in:
Rémi Verschelde
2020-01-07 14:00:40 +01:00
parent 01cb76abed
commit 8a912c7f0e
2 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,12 @@
#!/bin/bash
echo -e '#!/bin/bash\nwine${WINE_BITS} $(dirname $0)/mono-sgen.exe "$@"' > mono/mini/mono
if [ "${WINE_BITS}" == "64" ]; then
export WINEPATH="/usr/x86_64-w64-mingw32/sys-root/mingw/bin/"
else
export WINEPATH="/usr/i686-w64-mingw32/sys-root/mingw/bin/"
fi
echo -e '#!/bin/bash\n'"wine${WINE_BITS}"' $(dirname $0)/mono-sgen.exe "$@"' > mono/mini/mono
chmod +x mono/mini/mono
mkdir -p .bin