third_party/libdmg-hfsplus/src/docs/attribution.md
hfsplus hfsplus in.hfs setattr <file> <attr-key> <attr-value>
file with the given key and valuedmg build in.hfs out.dmg <sentinel>
AttributionResource in the Name key of the plst resourcedmg attribute in.dmg out.dmg <sentinel> <replacement>
N.b. attribute shouldn't parse the DMG, it should operate on bytestream
attribution resourceThe gold standard is to create two HFS filesystems, both with the same xattr but with distinct values, and build attributable DMGs with the same sentinel (a prefix of the distinct values, say).
See the *_reference.t tests for Cram
tests that generate such HFS and DMG files.
See the other tests for tests that exercise dmg build and dmg attribute.
It would be nice to add a command to convert an existing DMG file to an attributable one, like:
dmg attributable <in.dmg> <out.dmg> <sentinel>
AttributionResource in the Name key of the plst resource