如何为应用程序的Mac OS X应用程序捆绑包设置图标? [英] How do I set the icon for my application's Mac OS X app bundle?

查看:87
本文介绍了如何为应用程序的Mac OS X应用程序捆绑包设置图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个捆绑到Mac OS X应用程序捆绑包中的应用程序.一切工作正常,但我想将其图标从默认值更改.如何设置其图标?谢谢.

I have an application that I've bundled into a Mac OS X app bundle. Everything is working fine, but I want to change its icon from the default. How do I set its icon? Thanks.

推荐答案

在您的info.plist添加

<key>CFBundleIconFile</key>
<string>iconfile</string>

在资源"目录中带有图标文件iconfile.icns

with icon file iconfile.icns in your Resources directory

这篇关于如何为应用程序的Mac OS X应用程序捆绑包设置图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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