pyinstaller -F -w main.py -p main_show.py -p SSA_GUI.py -p SSA_and_figure.py -p KeyF_GUI_1.py -p KeyF_GUI_2.py --hidden-import main_show --hidden-import SSA_GUI --hidden-import SSA_and_figure --hidden-import KeyF_GUI_1 --hidden-import KeyF_GUI_2
# Avoid warning
to_remove = ["_C", "_AES", "_ARC4", "_DES", "_DES3", "_SHA256", "_counter"]
for b in a.binaries:
found = any(
f'{crypto}.cp37-win_amd64.pyd' in b[1]
for crypto in to_remove
)
if found:
print(f"Removing {b[1]}")
a.binaries.remove(b)
pyinstaller -F --onefile main.spec