commit 929527359c8febdbd4fc253380214c442a219356 Author: Hipstercat Date: Sat Jul 22 18:38:35 2023 +0200 init diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f17ebf8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM ubuntu:22.04 +RUN apt-get update +RUN apt-get install -y wget cabextract +RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key +RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources +RUN dpkg --add-architecture i386 +RUN apt-get update +RUN apt-get install -y winehq-stable xvfb + +RUN wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ + -O /usr/local/bin/winetricks && chmod +x /usr/local/bin/winetricks + +ENV DISPLAY ":0" +ENV WINEARCH "win32" +RUN xvfb-run wine wineboot && xvfb-run --auto-servernum winetricks -q vcrun2010 dotnet472 directplay + +ADD giants_data /giants + +WORKDIR /giants + +ADD start.sh /giants + +ENTRYPOINT ./start.sh diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..e4edaff --- /dev/null +++ b/start.sh @@ -0,0 +1,5 @@ +#!/bin/bash +xvfb-run --auto-servernum wine regedit nullrenderer.reg +xvfb-run --auto-servernum winetricks -f directplay + +WINEDEBUG="+dpnet" xvfb-run --auto-servernum wine GiantsDedicated.exe -noplay -nostream -dedicated current.gdf 2>&1 | grep -v "Zero length vector"