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-Key: 4574216585

Url: https://administrator.de/contentid/4574216585

Ausgedruckt am: 19.03.2024 um 07:03 Uhr

Mitglied: 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  
Mitglied: 3310487509
3310487509 22.11.2022 um 12:32:58 Uhr
Goto Top
Thanks for sharing this, It really helped me!