Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想更改 dmg 的默认图标,我喜欢使用默认图像音量图标的 Skype 或 Dropbox,但我无法通过 finder 找到它。你知道我在哪里可以找到它吗?
谢谢你的回答,鲍里斯
好的,我没有在查找器中找到图标,但您可以在此处下载完整的图标集:这里
此外,如果您想从 cmd 行设置 dmg 图标:
cp <您的文件.icns > <您安装的图像路径>.VolumeIcon.icns(确保您的dmg是可写的)
SetFile -a C <你挂载的镜像路径>
第二个命令行用于告诉 dmg 在安装后使用该图标。
如果您想从任何类型的图像制作 icns,请查看此免费软件:img2icns
如果要设置自定义音量图标,请使用以下命令
/* 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