Create an application plist

て烟熏妆下的殇ゞ 提交于 2019-12-10 15:55:49

问题


What would a Mac OS X Application Info.plist file look like? I only need the bare minimum, so that I have:

  • Launches an executable
  • Has an icon

Thanks!


回答1:


This is the real, bare minimum:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>CFBundleExecutable</key>
  <string>ExecutableFileName</string>
  <key>CFBundleIconFile</key>
  <string>AppIcon</string>
</dict>
</plist>

It is recommended to include a CFBundleIdentifier key also. This way the system can identify your application. I really recommend you include it.


You can find more keys in the Information Property List Key Reference.



来源:https://stackoverflow.com/questions/6323445/create-an-application-plist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!