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.
I can make a dmg for a 1.py file but not for numerous files in several directories.
Please also mark the comments that contributed to the solution of the article
Content-Key: 4574216585
Url: https://administrator.de/contentid/4574216585
Printed on: December 4, 2023 at 12:12 o'clock
2 Comments
Latest comment

https://dmgbuild.readthedocs.io/en/latest/settings.html#content-settings
Note the files (complete folders are also possible) which should go into the DMG in settings.py
Finally build the dmg
Note the files (complete folders are also possible) which should go into the DMG in settings.py
files = ['/path1/script1.py', '/path2/script2.py']
dmgbuild -s settings.py "Volume Name" output.dmg