From 3b8c8eec237d3491438c9caf32611546418bb653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Paulev=C3=A9?= Date: Mon, 2 Oct 2023 11:57:59 +0200 Subject: [PATCH] corefonts workaround and update setup link --- Dockerfile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7013f6a..ab6a8cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,19 +26,25 @@ RUN apt-get update \ && apt autoremove -y --purge \ && apt clean -y && rm -rf /var/lib/apt/lists/* -RUN su - $WINE_USER -c 'wineboot -i' \ - && su - $WINE_USER -c 'winetricks -q corefonts calibri tahoma' \ - && su - $WINE_USER -c 'taskset -c 0 winetricks -f -q dotnet48' \ - && su - $WINE_USER -c 'winetricks win7 sound=alsa ddr=gdi'\ - && su - $WINE_USER -c 'winetricks renderer=gdi'\ - && su - $WINE_USER -c 'wineboot -s' \ +USER wine + +RUN wineboot -i \ + && mkdir -p /home/wine/.cache/winetricks/corefonts \ + && cd /home/wine/.cache/winetricks/corefonts \ + && curl -fOL https://web.archive.org/web/20180219204401/https://mirrors.kernel.org/gentoo/distfiles/arial32.exe \ + && curl -fOL https://web.archive.org/web/20180219204401/https://mirrors.kernel.org/gentoo/distfiles/times32.exe \ + && winetricks -q corefonts calibri tahoma \ + && taskset -c 0 winetricks -f -q dotnet48 \ + && winetricks win7 sound=alsa ddr=gdi \ + && winetricks renderer=gdi \ + && wineboot -s \ && rm -rf /home/wine/.cache ENV WINEDEBUG -all,err+all,warn+chain,warn+cryptnet COPY extra/mtgo.sh /usr/local/bin/mtgo -ADD --chown=wine:wine https://mtgo.patch.daybreakgames.com/patch/mtg/live/client/setup.exe?v=7 /opt/mtgo/mtgo.exe +ADD --chown=wine:wine https://mtgo.patch.daybreakgames.com/patch/mtg/live/client/setup.exe?v=8 /opt/mtgo/mtgo.exe USER wine