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 1.py file but not for numerous files in several directories.

Use Disk Utility to create and mount an empty dmg file (File → New Image → Blank Image) and then put your files & folders in it.

1 Like