marcelotduarte/cx_Freeze

Flag to prevent library.zip creation

Mx772 opened this issue · 4 comments

Prerequisite

Describe the bug Feature
I see in the past it was possible to generate directory that didn't include library.zip such as this gist:
https://gist.github.com/CountChu/c07cff7c1db062b24463a60a35eebe1e using create_shared_zip=false.

But on the latest version, I can't seem to reproduce this via any method of configuration.

I thought one of these might do it:

"zip_exclude_packages": ["*"],
"no_compress": True,

To Reproduce
Steps to reproduce the behavior (a setup.py or a minimal code sample will be good)
Any setup.py to my knowledge

Expected behavior
A clear and concise description of what you expected to happen.

A way to prevent library.zip from generating. (Possibly having the files be external to the zip,etc)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Platform information (e.g. Ubuntu Linux 22.04): Win11
  • OS architecture (e.g. amd64): amd64
  • cx_Freeze version [e.g. 6.11]: cxfreeze 6.15.16
  • Python version [e.g. 3.10]: Python 3.10.11

Additional context

While uploading to some third-party sites, they prevent nested zips (One such being nexusMods).

As a result, this fails. Unpacking/moving the files causes failures, so I'd love if there was a way to flag to just have them unzipped and referenced loosely.

If there is some flag/config I'm missing please let me know!

I see in the past it was possible to generate directory that didn't include library.zip such as this gist:
https://gist.github.com/CountChu/c07cff7c1db062b24463a60a35eebe1e using create_shared_zip=false.

I had never seen this option.

I thought one of these might do it:

"zip_exclude_packages": ["*"],
"no_compress": True,

It is possible to implement an option like this, it will be useful when using bdist_appimage too, because I don't see the need for a zip inside the AppImage which is also a zip.