From 6e5f46554e70a5081ad91240406bc4c58a129fb2 Mon Sep 17 00:00:00 2001 From: Muzahid Hussain Date: Fri, 15 Jan 2021 17:18:05 +0100 Subject: [PATCH] building the wine build for windows --- docker/bionic-wine.docker | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docker/bionic-wine.docker diff --git a/docker/bionic-wine.docker b/docker/bionic-wine.docker new file mode 100644 index 0000000..d7acae0 --- /dev/null +++ b/docker/bionic-wine.docker @@ -0,0 +1,42 @@ +FROM pybm-build + +ENV HOME /root + +RUN mkdir $HOME/Downloads +WORKDIR $HOME/Downloads +RUN wget https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi + + +# WORKDIR $HOME +# RUN git clone https://github.com/Bitmessage/PyBitmessage + +WORKDIR $HOME/PyBitmessage +ENV PATH $HOME/.local/bin:$PATH +# RUN ln -s src pybitmessage + +# 64b +# RUN find $HOME -name *.msi +# RUN pip install cryptography +# RUN git clone https://github.com/mhammond/pywin32.git +# RUn pip install simpleai +# RUN python pywin32/pywin32_postinstall.py -install +RUN xvfb-run --auto-servernum wine msiexec -i $HOME/Downloads/VCForPython27.msi /q /norestart +ENV WINEPREFIX $HOME/.wine64 +ENV WINEARCH=win64 +RUN DISTUTILS_USE_SDK=1 +# RUN SET MSSdk=1 +# RUN pip install VCForPython.msi +RUN msiexec -i /root/Downloads/VCForPython27.msi +RUN xvfb-run --auto-servernum winetricks -q dotnet40 +RUN xvfb-run --auto-servernum wine pip install wheel +RUN xvfb-run --auto-servernum wine python setup.py test + +# 32b +RUN sudo xvfb-run i386 buildscripts/winbuild.sh +ENV WINEPREFIX $HOME/.wine32 +ENV WINEARCH=wine32 +RUN sudo xvfb-run i386 wine msiexec -i $HOME/Downloads/VCForPython27.msi /q /norestart +RUN sudo xvfb-run i386 winetricks -q dotnet40 +RUN sudo xvfb-run i386 wine pip install wheel +RUN sudo xvfb-run i386 wine python setup.py test +