Add background image/color to DMG using hdiutil or other tool? [duplicate]

主宰稳场 提交于 2019-12-06 00:30:17

问题


Possible Duplicate:
How do I create a nice-looking DMG for Mac OS X using command-line tools?

It seems like using Finder UX or some sort of UI tool (Create drag-drop graphic when installing OS X application from dmg) the only way to customize how a DMG looks when opened up. That doesn't scale too well and isn't automatable enough.

Anyone know of way to achieve the same thing but using tools such as hdiutil on Mac or mkfs.hfsplus on Linux?


回答1:


The OS X Finder stores data about the window size, type, position, background image and icon arrangement (per directory) in a hidden file called .DS_Store. If you follow the general idea from the other question, you should then be able to copy the .DS_Store file from the resulting disk image into new images generated by a deployment script.



来源:https://stackoverflow.com/questions/871551/add-background-image-color-to-dmg-using-hdiutil-or-other-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!