This will require support for writing binary data so QBS can handle the (quite difficult) task of writing the appropriate .DS_Store file to the dmg instead of requiring users to provide one themselves (though this should still be an option). The former option is most preferable because storing a pre-made .DS_Store binary blob is difficult to tweak and attempting to run AppleScript at runtime to generate one is potentially unstable and is awkward to make reusable. That approach also results in backwards compatibility issues since .DS_Store files generated on newer systems may not work on older ones.
There are a number of third party resources (including a Perl module) we can reference for knowledge of the file format and build process:
http://clanmills.com/articles/macinstallers/DSStoreFormat.htmlhttp://web.archive.org/web/20130414103528/http://clanmills.com/articles/macinstallers/DSStoreFormat.html http://clanmills.com/articles/macinstallers/http://web.archive.org/web/20130903194002/http://clanmills.com/articles/macinstallers/ (this one's quite useful)
For some reason, `hdiutil makehybrid` causes my DVD drive to emit a strange noise. Disabling related kexts silences it I'd love a better solution if anyone else happens to know.