KBNLresearch / isolyzer

Verify size of ISO 9660 image against Volume Descriptor fields
Other
44 stars 7 forks source link

Update Windows build process #24

Open bitsgalore opened 2 years ago

bitsgalore commented 2 years ago

Adapt Docker based jpylyzer scripts?

bitsgalore commented 2 years ago

Embeddable Python packages still work under Wine:

https://www.python.org/downloads/release/python-3104/

As for making pip work with these, see:

https://stackoverflow.com/questions/68958635/python-windows-embeddable-package-fails-to-run-no-module-named-pip-the-system

bitsgalore commented 2 years ago

Abandoned Wine-based approach after trouble installing PyInstaller, and used Jpylyzer's Docker script instead:

https://github.com/KBNLresearch/isolyzer/commit/e7d78fa64a4facd43521b138cc1e0c3030d388f5

This seems to work, but I don't really understand how/why!

EDIT - I think it uses this:

https://github.com/cdrx/docker-pyinstaller

Under Wine the binaries result in an error if output is redirected to a file:

wine /home/johan/.wine/drive_c/isolyzer/isolyzer 10MB-CD-DVD.iso > test.xml

Result:

Fatal Python error: init_sys_streams: can't initialize sys standard streams
OSError: [WinError 6] Invalid handle

Current thread 0x0000002b (most recent call first):

abnormal program termination

I suspect this is a Wine issue, see: https://forum.winehq.org/viewtopic.php?t=33992