79135664

Date: 2024-10-29 02:30:10
Score: 6 🚩
Natty:
Report link

I have spec file which has analysis as follows:

# Generate Analysis and EXE objects for each script
analyses = []
exes = []

for script in script_names:
    analysis, exe = create_analysis_exe(script)
    analyses.append(analysis)
    exes.append(exe)

# Combine binaries and datas from all analyses to avoid duplication
all_binaries = []
all_zipfiles = []
all_datas = []

for analysis in analyses:
    all_binaries += analysis.binaries
    all_zipfiles += analysis.zipfiles
    all_datas += analysis.datas

and I am using collect as follows:

coll = COLLECT(
    *exes,  # Add all EXEs
    all_binaries,
    all_zipfiles,
    all_datas,
    strip=False,
    upx=True,
    name='_global'  # Adjust output name as needed
)

but somehow it's overwriting some dependencies information i think, which is why the exe's don't work as they should.

If i create exes with separate spec file, i get individual exe and it's dependencies folder. I am looking for a way to have a single dependencies folder as mentioned above.

Can someone please suggest a way to achieve this or let me know if it is not doable at all?

Reasons:
  • Blacklisted phrase (2): I am looking for
  • RegEx Blacklisted phrase (2.5): Can someone please suggest
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Renu