Adding many Python files and directories to a single dmg file

How can I make a single dmg file out of many Python files in different folders? I know that’s doable for a single file, but how can I do it for several?
I can make a dmg for a file but not for numerous files in several directories.

x.DMG is usually a macOS Disk iMaGe file, apparently similar to a .iso file on other systems. I suspect that there are separate OS utilities to work with them on the 3 major OSes. If you want to work with them from Python code, search ‘.dmg’ on

1 Like

Thanks for the clarification! it really helped me.