cdrx / docker-pyinstaller

PyInstaller for Linux and Windows inside Docker
MIT License
616 stars 238 forks source link

How to create win32 application? #48

Closed maccradar closed 5 years ago

maccradar commented 5 years ago

I have been using your image and pyinstaller for a while now, and I love it :smile: ! However, for a current project I want to generate a 32-bit application for an old Windows XP. By default (or design?) the pyinstaller-windows image generates a x86_64 executable. Is it possible to generate a 32-bit application as well?

Thanks!

Here's my .spec file

# -*- mode: python -*-

block_cipher = None

a = Analysis(['GUI.py'],
             pathex=[],
             binaries=[],
             datas=[],
             hiddenimports=[],
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          name='DataUploader',
          debug=False,
          strip=False,
          upx=True,
          runtime_tmpdir=None,
          console=True )

And docker run command I currently use within the project folder:

$ docker run -v "$(pwd):/src/" cdrx/pyinstaller-windows
maccradar commented 5 years ago

Aha, just saw there's a win32 image as well :laughing:

Keep up the great work!