Current section

Files

Jump to
rambo priv entrypoint.sh
Raw

priv/entrypoint.sh

#!/bin/bash
set -e
# Initialize the wine prefix (virtual windows installation)
export WINEPREFIX=/tmp/wine
mkdir -p $WINEPREFIX
# FIXME: Make the wine prefix initialization faster
wineboot &> /dev/null
# Put libstdc++ and some other mingw dlls in WINEPATH
# This must work for x86_64 and i686
P1=$(dirname $(find /usr -name libwinpthread-1.dll))
export WINEPATH="$(ls -d /usr/lib/gcc/*-w64-mingw32/*posix);$P1"
exec "$@"