3310487509
Goto Top

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.

Content-ID: 4574216585

Url: https://administrator.de/en/adding-many-python-files-and-directories-to-a-single-dmg-file-4574216585.html

Ausgedruckt am: 22.12.2024 um 11:12 Uhr

4400667902
Lösung 4400667902 12.11.2022 aktualisiert um 12:43:59 Uhr
Goto Top
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
files = ['/path1/script1.py', '/path2/script2.py']  
Finally build the dmg
dmgbuild -s settings.py "Volume Name" output.dmg  
3310487509
3310487509 22.11.2022 um 12:32:58 Uhr
Goto Top
Thanks for sharing this, It really helped me!