
3310487509
Nov 10, 2022, updated at 13:32:24 (UTC)
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-ID: 4574216585
Url: https://rootdb.com/en/adding-many-python-files-and-directories-to-a-single-dmg-file-4574216585.html
Printed on: February 23, 2025 at 07:02 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