Changeset 939:de728888b85e
- Timestamp:
- 04/28/19 17:32:28 (6 years ago)
- Branch:
- python3
- Phase:
- public
- Files:
-
- 2 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
MANIFEST.in
r916 r939 1 1 include mlx.nsi 2 include makeinst.bat 3 include winemakeinst.bat 2 include makeinst.sh 4 3 include license.txt 5 4 include runmlx.py -
docker/build-mlxwinebuild.sh
r916 r939 6 6 sdistdir=$(cd $(dirname "${sdistfile}") && pwd) 7 7 8 docker run --rm -v "${sdistdir}:/root/dist" mlxwinebuild build $(basename "${sdistfile}") $(id -u) $(id -g)9 #docker run -it --rm -v "${sdistdir}:/root/dist" mlxwinebuild bash8 docker run --rm -v "${sdistdir}:/root/dist" mlxwinebuild-py3 build $(basename "${sdistfile}") $(id -u) $(id -g) 9 #docker run -it --rm -v "${sdistdir}:/root/dist" mlxwinebuild-py3 bash -
docker/context/Dockerfile
r916 r939 8 8 wine \ 9 9 wine32 && \ 10 apt-get clean && \ 10 11 echo "Europe/Budapest" > /etc/timezone && \ 11 12 rm -f /etc/localtime && \ -
docker/context/build.sh
r916 r939 18 18 cd "${mlxdirname}" 19 19 20 echo "winemakeinst.bat" | wine cmd 20 export WINE=yes 21 ./makeinst.sh 21 22 22 23 echo -
docker/context/setup.sh
r916 r939 4 4 5 5 cdrive="${HOME}/.wine/drive_c" 6 ctmpdir="${cdrive}/tmp" 7 cpythondir="${cdrive}/Python27" 8 cwinsysdir="${cdrive}/windows/system32" 6 cpythondir="${cdrive}/msys64/mingw32" 9 7 10 if test -f "${cpythondir}/ python.exe"; then8 if test -f "${cpythondir}/bin/python3.exe"; then 11 9 echo "Image already configured, not doing anything!" 12 10 exit 1 … … 16 14 echo 17 15 16 export WINEARCH=win32 17 18 echo "exit" | wine cmd 19 18 20 echo "Downloading and extracting the extra packages..." 19 21 20 wget -O - mlx.varadiistvan.hu/update/winepkgs.tar | tar xf - 22 wget -O - mlx.varadiistvan.hu/update/msys64.tar.gz | tar xzf - -C "${cdrive}" 23 wget -O - mlx.varadiistvan.hu/update/winepkgs.tar | tar xf - nsis-2.46-setup.exe pyuipc-cpython-37m.dll xplra.py 24 25 mv pyuipc-cpython-37m.dll xplra.py /root/.wine/drive_c/msys64/mingw32/lib/python3.7/site-packages 21 26 22 27 echo 23 28 echo "Installing extra packages..." 24 29 25 export WINEARCH=win3226 27 echo "exit" | wine cmd28 wine msiexec /i python-2.7.2.msi29 wine msiexec /i cefpython3-31.2.py2.7-win32.msi30 wine msiexec /i pygtk-all-in-one-2.24.1.win32-py2.7.msi31 wine msiexec /i pyuipc-0.4.win32-py2.7.msi32 wine msiexec /i xplra-0.2.win32.msi33 34 wine pywin32-217.win32-py2.7.exe35 wine py2exe-0.6.9.win32-py2.7.exe36 30 wine nsis-2.46-setup.exe 37 38 mkdir "${ctmpdir}"39 cp chromedriver.exe "${ctmpdir}"40 41 tar xzf Python27.extra.tar.gz -C "${cpythondir}"42 43 touch -d "2015-02-22 14:50:07" "${cpythondir}/Lib/site-packages/win32/lib/win32con.py"44 touch -d "2015-02-22 14:50:07" "${cpythondir}/Lib/site-packages/win32/lib/winerror.py"45 46 cp python27.dll WINHTTP.dll "${cwinsysdir}"47 31 48 32 echo 49 33 echo "Removing extra packages..." 50 rm -f *. msi *.exe Python27.extra.tar.gz python27.dll WINHTTP.dll34 rm -f *.exe 51 35 echo 52 36 echo "Done." -
docker/initialize-mlxwinebuild.sh
r916 r939 6 6 scriptdir=`cd "${scriptdir}" && pwd` 7 7 8 docker build -t mlxwinebuild- base "${scriptdir}/context"8 docker build -t mlxwinebuild-py3-base "${scriptdir}/context" 9 9 10 10 if test -z "${XAUTHORITY:-}"; then … … 12 12 fi 13 13 14 docker run -it --name mlxwinebuildinit -v /tmp/.X11-unix:/tmp/.X11-unix -v "${XAUTHORITY}":/root/.Xauthority -v /usr/lib/x86_64-linux-gnu/vdpau:/usr/lib/x86_64-linux-gnu/vdpau --device /dev/nvidiactl --device /dev/nvidia0 --security-opt=apparmor:unconfined --env DISPLAY mlxwinebuild- base initialize14 docker run -it --name mlxwinebuildinit -v /tmp/.X11-unix:/tmp/.X11-unix -v "${XAUTHORITY}":/root/.Xauthority -v /usr/lib/x86_64-linux-gnu/vdpau:/usr/lib/x86_64-linux-gnu/vdpau --device /dev/nvidiactl --device /dev/nvidia0 --security-opt=apparmor:unconfined --env DISPLAY mlxwinebuild-py3-base initialize 15 15 16 16 echo "Committing new image..." 17 17 18 docker commit --change='CMD ["bash"]' mlxwinebuildinit mlxwinebuild 18 docker commit --change='CMD ["bash"]' mlxwinebuildinit mlxwinebuild-py3 19 19 20 20 echo "Removing container..."
Note:
See TracChangeset
for help on using the changeset viewer.