macoslicensingdmg

attach license file to dmg under OSX


guys! Is there any command line I can use to attach a license file to a dmg?

Thank you very much

(I'm experiencing problems with the editor, so forgive me if you see "strange things" in the text)


Solution

  • I found a blog entry for you (linked here) where the guy has written a python script which you can call, from the command line, to attach a Software License Agreements to a Disk Image file.

    Works on 10.6 & newer.

    According to his original blog entry:

    This script runs on Python 2.6 or 2.7. If the default locations of Rez and the FlatCarbon headers are different on your machine, you’ll need to specify the correct location using the command line options --rez and --flat-carbon.

    His script (click this link to see it) can be invoked as easily as:

    ./licenseDMG.py <dmgFile> <licenseFile>