Install some necessary wine-tricks

This commit is contained in:
zontreck 2024-05-25 16:43:07 -07:00
parent 9703ad4345
commit 420b7dbd88
3 changed files with 27 additions and 24 deletions

View file

@ -3,6 +3,12 @@
cd /home/container
# Information output
echo "Running on Debian $(cat /etc/debian_version)"
echo "Current timezone: $(cat /etc/timezone)"
wine --version
if [[ $XVFB == 1 ]]; then
Xvfb :0 -screen 0 ${DISPLAY_WIDTH}x${DISPLAY_HEIGHT}x${DISPLAY_DEPTH} &
fi
@ -13,7 +19,7 @@ echo "First launch will throw some errors. Ignore them"
mkdir -p $WINEPREFIX
# Check if wine-gecko required and install it if so
if [[ $WINETRICKS_RUN =~ gecko ]]; then
echo "Installing Gecko"
WINETRICKS_RUN=${WINETRICKS_RUN/gecko}
@ -27,10 +33,9 @@ if [[ $WINETRICKS_RUN =~ gecko ]]; then
wine msiexec /i $WINEPREFIX/gecko_x86.msi /qn /quiet /norestart /log $WINEPREFIX/gecko_x86_install.log
wine msiexec /i $WINEPREFIX/gecko_x86_64.msi /qn /quiet /norestart /log $WINEPREFIX/gecko_x86_64_install.log
fi
# Check if wine-mono required and install it if so
if [[ $WINETRICKS_RUN =~ mono ]]; then
echo "Installing mono"
WINETRICKS_RUN=${WINETRICKS_RUN/mono}
@ -39,7 +44,6 @@ if [[ $WINETRICKS_RUN =~ mono ]]; then
fi
wine msiexec /i $WINEPREFIX/mono.msi /qn /quiet /norestart /log $WINEPREFIX/mono_install.log
fi
# List and install other packages
for trick in $WINETRICKS_RUN; do

View file

@ -43,7 +43,6 @@ ENV DISPLAY=:0
ENV DISPLAY_WIDTH=1024
ENV DISPLAY_HEIGHT=768
ENV DISPLAY_DEPTH=16
ENV AUTO_UPDATE=1
ENV XVFB=1
USER container

View file

@ -55,11 +55,11 @@ Future<void> runDetachedProton(
List<String> args = ["run", command];
args.addAll(argx);
List<String> wineArgs = [command];
List<String> wineArgs = ["--auto-servernum", "wine", command];
wineArgs.addAll(argx);
if (settings.inst!.pterodactylMode)
StateMachine.PROC = await Process.start("wine", wineArgs,
StateMachine.PROC = await Process.start("xvfb-run", wineArgs,
environment: env,
workingDirectory: workingDir,
mode: ProcessStartMode.normal);