"美化" OS X磁盘映像 [英] "Beautifying" an OS X disk image

查看:218
本文介绍了"美化" OS X磁盘映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我下载Skype时,我注意到,取代普通的磁盘映像图标,有一个自定义图标,当我双击图标时,窗口使用彩色图像作为背景,提示我将skype图标拖到应用程序文件夹中。

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.

如何使用我的应用程序执行此操作?

How can I do that with my applications?

谢谢,
Jason

Thanks, Jason

推荐答案

让我添加其他答案 jwz的howto 关于在.dmg文件上设置视图选项。这是我最简单的工作,没有问题。

Let me add to the other answers jwz's howto on setting view options on .dmg files. This is the simplest one that I got to work with no problems.

另外,要从默认的.dmg图标更改图标:

Also, to change the icon from the default .dmg icon:


  • 在Finder中,打开一个检查器窗口(^ I),查看要使用其图标的文件,单击顶部的图标(它将获得蓝色边框)并将其复制到剪贴板(^ C)。

  • 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).

然后打开.dmg的另一个检查员,点击图标并按^ V粘贴

Then open another inspector for your .dmg, click on the icon and press ^V to paste

(你可以改变任何这样的文件的图标)。

(you can change the icon for any file like this).

对于这种事情,你可以总是看开源程序,看看他们做了什么来获得类似的结果。例如,以下是用于构建漂亮的dmg文件的相关源文件:

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:

  • Adium
  • Miro

这篇关于"美化" OS X磁盘映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆