This commit is contained in:
Adsooi 2020-06-25 20:12:29 +02:00
commit 6a426e7110
5 changed files with 46 additions and 94 deletions
accountfree-build-img-wine

View file

@ -1,22 +1,17 @@
FROM ad5001/ubuntu-pyside2-xvfb-wine:win7-5.12.2
FROM ad5001/ubuntu-pyside2-xvfb-wine:win7-5.14.1
RUN apt-get update
RUN apt install unzip nsis -y
# Installing tor to not get the popup
RUN apt install unzip -y
RUN wget https://dist.torproject.org/torbrowser/8.0.7/tor-win32-0.3.5.8.zip
RUN unzip tor-win32-0.3.5.8.zip -x Data/*
RUN wget https://dist.torproject.org/torbrowser/9.0.5/tor-win64-0.4.2.6.zip
RUN unzip tor-win64-0.4.2.6.zip -x Data/*
RUN mv Tor /wine/drive_c/
RUN wine reg ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment" /v PATH /f /t REG_EXPAND_SZ /d "C:\windows\system32;C:\windows;C:\windows\system32\wbem;C:\Tor"
RUN rm tor-win32-0.3.5.8.zip
RUN rm tor-win64-0.4.2.6.zip
# Installing pyinstaller
RUN git clone https://github.com/pyinstaller/pyinstaller
RUN cd pyinstaller \
&& python setup.py install \
&& cd .. \
&& rm -rf pyinstaller
RUN echo 'wine '\''C:\Python36\Scripts\pyinstaller.exe'\'' "$@"' > /usr/bin/pyinstaller
RUN pip install pyinstaller
RUN echo 'wine '\''C:\Python37\Scripts\pyinstaller.exe'\'' "$@"' > /usr/bin/pyinstaller
RUN chmod +x /usr/bin/pyinstaller
# Installing dependencies
RUN pip install streamlink pyside2 torrequest websocket-client pywin32
RUN pip install pyside2 packaging websocket-client pywin32 stem requests