[英]“Beautifying” an OS X disk image
When I downloaded Skype, I noticed that, in place of a normal "disk image" icon, there was a custom icon, and when I double clicked on the icon, the window used a colorful image as the background, prompting me to drag the skype icon into the applications folder.当我下载 Skype 时,我注意到,在正常的“磁盘图像”图标的位置,有一个自定义图标,当我双击该图标时,window 使用彩色图像作为背景,提示我拖动Skype 图标到应用程序文件夹中。
How can I do that with my applications?如何使用我的应用程序做到这一点?
Thanks, Jason谢谢,杰森
Let me add to the other answers jwz's howto on setting view options on.dmg files.让我添加到其他答案jwz关于设置视图选项 on.dmg 文件的方法。 This is the simplest one that I got to work with no problems.
这是我可以毫无问题地工作的最简单的一个。
Also, to change the icon from the default.dmg icon:此外,要从 default.dmg 图标更改图标:
In the Finder, open an inspector window (^I) for the file whose icon you want to use, click on the icon at the top (it will get a blue border) and copy it to the clipboard (^C).在 Finder 中,为您要使用其图标的文件打开检查器 window (^I),单击顶部的图标(它将获得蓝色边框)并将其复制到剪贴板 (^C)。
Then open another inspector for your.dmg, click on the icon and press ^V to paste然后为 your.dmg 打开另一个检查器,单击图标并按 ^V 粘贴
(you can change the icon for any file like this). (您可以像这样更改任何文件的图标)。
For this kind of thing, you can always look at open-source programs and see what they do to get a similar result.对于这种事情,你总是可以查看开源程序,看看他们做了什么来获得类似的结果。 For example here are the relevant source files for building pretty dmg files in:
例如,这里是用于构建漂亮 dmg 文件的相关源文件:
If you're interested in a commercial solution, there are a number of DMG designer apps available, including the following I gleaned from a MacUpdate search :如果您对商业解决方案感兴趣,可以使用许多 DMG 设计器应用程序,包括我从MacUpdate 搜索中收集到的以下应用程序:
This is a great freeware solution for a custom background with zero hassle:对于零麻烦的自定义背景,这是一个很棒的免费软件解决方案:
http://sourceforge.net/projects/dmgcreator/ http://sourceforge.net/projects/dmgcreator/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.