lib/functions.sh: ensure 32-bit wine directory is created

Set the WINEARCH environment variable to 'win32' so that wine will create
a 32-bit windows directory structure.  This is necessary on 64-bit
platforms since some 32-bit windows system dlls are installed into the
windows directory and the dlls must match the windows architecture and vice
versa.
This commit is contained in:
Brandon Casey 2011-07-31 19:54:59 -05:00
parent 6e3b4657c1
commit 2e2d48517f

View File

@ -240,9 +240,9 @@ function downloadEvolt {
# Call wineprefixcreate
function create_wine_prefix {
if which wineprefixcreate &> /dev/null; then
( wineprefixcreate 2>&1 ) | debugPipe
( WINEARCH=win32 wineprefixcreate 2>&1 ) | debugPipe
elif which wineboot &> /dev/null; then
( wineboot 2>&1 ) | debugPipe
( WINEARCH=win32 wineboot 2>&1 ) | debugPipe
else
error $MSG_ERROR_NO_WINEPREFIXCREATE
fi