winewrapper: Wrap wine commands for 32/64-bit environments

This commit is contained in:
2016-07-10 17:37:04 -05:00
parent 2ed373353b
commit dbdbc93c4c

11
winewrapper.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -x
me=$(basename "$0")
binary=${me%??}
bitness=${me#${binary}}
export WINEARCH=win${bitness}
export WINEPREFIX=$HOME/.wine${bitness}
/usr/bin/${binary} "$@"