Compile Python 3.x scripts with Pyinstaller into 32 bit Windows executables on Ubuntu with Wine. This work has been forked and adapted from kicsikrumpli/wine-pyinstaller
By default X window display is set to X virtual frame buffer as DISPLAY=:1. Winecfg popups are not displayed, button presses are automated.
To observe build time windows on external X server:
--build-arg DISPLAY=host.docker.internal:0xhost + 127.0.0.1on host to enable connection to X11 from docker image- enable XTEST for XQuartz on mac for automated keypresses to work
Running make will get python installer, wine sources and build docker image.
- bind mount current directory with script to
/src/ - assumes presence of
requirements.txt - docker run parameters are passed to pyinstaller
docker run -it -v $(pwd):/src outscale-dev/wine-pyinstaller --clean --onefile my_python_script.pydocker run -it outscale-dev/wine-pyinstaller --bashFeel free to open an issue to ask questions or raise an issue