“美化” OS X 磁盘映像

发布于 2024-07-04 10:25:41 字数 141 浏览 4 评论 0原文

当我下载 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?

Thanks,
Jason

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

云仙小弟 2024-07-11 10:25:41

这是一个很棒的免费软件解决方案,用于零麻烦的自定义背景:

http://sourceforge.net/projects/dmgcreator/

This is a great freeware solution for a custom background with zero hassle:

http://sourceforge.net/projects/dmgcreator/

让我添加到其他答案 jwz 的操作方法 关于设置 .dmg 文件的视图选项。 这是最简单的一个,我没有遇到任何问题。

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

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

  • 然后为您的 .dmg 打开另一个检查器,单击图标并按 ^V 粘贴

(您可以更改类似这样的任何文件的图标)。

对于这种事情,你总是可以查看开源程序,看看他们做了什么才能得到类似的结果。 例如,以下是用于构建漂亮 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.

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

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

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

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:

给妤﹃绝世温柔 2024-07-11 10:25:41

如果您对商业解决方案感兴趣,可以使用许多 DMG 设计器应用程序,包括我从 MacUpdate 搜索

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文