Leopard 上哪里可以找到卷安装图标

发布于 2024-07-24 22:52:20 字数 112 浏览 2 评论 0原文

我想更改 dmg 的默认图标,我喜欢像 Skype 或 Dropbox 那样使用默认图像音量图标,但我无法使用查找器找到它。 你知道我在哪里可以找到它吗?

感谢您的回答, 鲍里斯

I want to change the default icon of a dmg, I'ld like to do like skype or dropbox which use the default image volume icon, but I don't manage to find it with the finder. Do you have any idea where I could find it?

Thanks for your answer,
Boris

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

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

发布评论

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

评论(2

浪漫之都 2024-07-31 22:52:20

好吧,我在取景器中没有找到该图标,但您可以在此处下载完整的图标集: 此处

另外,如果您想从 cmd 行设置 dmg 图标:

  • cp

    你的文件.icns > < 您安装的图像路径>.VolumeIcon.icns(确保您的dmg可写)

  • SetFile -a C

    你挂载的镜像路径>

第二个命令行用于告诉 dmg 在安装后使用该图标。

如果您想从任何类型的图像制作 icns,请查看此免费软件:img2icns

Ok I didn't find the icon in the finder but you can download the full icon set here : here

Also if you want to set the dmg icon from the cmd line :

  • cp < your file.icns > < your mounted image path >.VolumeIcon.icns (make sure your dmg is writable)

  • SetFile -a C < your mounted image path >

The second command line is used to tell the dmg to use the icon once mounted.

If you want to make an icns from any kind of image, have a look at this freeware : img2icns

无边思念无边月 2024-07-31 22:52:20

如果您想设置自定义音量图标,请使用以下命令

/*
SetFile -c icnC will change the creator of the file to icnC
*/
SetFile -c icnC /<your path>/.VolumeIcon.icns

现在创建读/写 dmg

/*
to set custom icon attribute
*/
SetFile -a C /Volumes/dmgName

If you want to set custom volume icon then use below command

/*
SetFile -c icnC will change the creator of the file to icnC
*/
SetFile -c icnC /<your path>/.VolumeIcon.icns

Now create read/write dmg

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