extremecoders-re / pyinstxtractor

PyInstaller Extractor
GNU General Public License v3.0
2.96k stars 612 forks source link

pack extract folder to exe again #18

Closed m0hamedessam closed 3 years ago

m0hamedessam commented 3 years ago

is it possible to pack extract folder to exe again ?

extremecoders-re commented 3 years ago

The PyInstaller CArchive and ZlibArchive format is documented and open-source. I've a private tool for repacking Pyinstaller exe's which also allows adding, removing or editing existing files within it. So this is definitely possible.

There are also other ways to achieve the same result. Rather than repacking the exe, you can also build a new one out of the extracted files. The files inside the outpyz directory are the pure python dependencies of the application. Excluding the well known files, in standard Python, these usually reside inside the site-packages directory.

m0hamedessam commented 3 years ago

I did it with cx_freeze but will be nice if you share your tool.

extremecoders-re commented 3 years ago

Unfortunately wont be able to share the tool. Sorry about that. But yes other approaches are possible including cx_freeze.

m0hamedessam commented 3 years ago

Thanks my friend for your concern anyway its done with cx_freeze without issues just need same python version with same bit (32 or 64)

fuchsia74 commented 5 months ago

https://github.com/in1nit1t/pyipx this is good