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?