将版本信息添加到OSX命令行应用程序 [英] Adding version infomation to an OSX command line application
本文介绍了将版本信息添加到OSX命令行应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Windows上,我只需要添加一个带有正确数据的RC文件。我需要像往常一样用info.plist / version.plist组装一个包吗?还是有更好的,标准的方法吗?
On Windows I'd simply add an RC file with the right data. Do I need to assemble a bundle as usual with an info.plist/version.plist or is there a better, standard, way of doing things? This is for Snow Leopard and later if that is relevant.
Thx ++
推荐答案
可以将Info.plist文件作为特殊Mach-o段嵌入到可执行文件中。请参见此问题。
It is possible to embed an Info.plist file in an executable as a special Mach-o section. See for example this question.
这篇关于将版本信息添加到OSX命令行应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文