Monthly Archives: May 2013

How to embed an Info.plist into arbitrary binaries

For an application on OS X, the Info.plist file is very common. But could we embed it into the binaries?

Yes, we can. There is a compiler option “–sectcreate __TEXT __info_plist Info.plist”.

One example is the .pro file for qmlplugindump in qtdeclrative, change 4d173d5f16c103f640d4089feed44a74b14e9004.

I learned it from ariya‘s commit in phantomjs: 71425850f61ad85e33741ed5a59364327532f6a8.

And today I read an article: Gimmedebugah: how to embedded a Info.plist into arbitrary binaries, which also mentioned this. And it gives me the Apple documentation for that, Code Signing Tasks: Adding an Info.plist to Single-File Tools.

如何安装魔兽世界国服Mac版

注意:暴雪的中国代理网易那里官方并不支持魔兽世界国服Mac版,本篇文章属于社区贡献的总结。

暴雪大神其实一直是Windows+Mac双平台的,而且暗黑破坏神III都登陆PS3了。至于魔兽世界国服,不知道是当初九城引进时候的问题,还是网易接盘的问题,一直不能是用Mac版。至于国服的星际争霸II和暗黑破坏神III的Mac版的情况,我也不太清楚,好像也都没有吧。

x-only.net的Huan Zuo同学(微博: HZ老师)在这方面工作了很久,一直在他的网站上提供了Mac版的支持。在此,向他致敬。

我自己最近是从5.1开始,从Windows下切换到Mac的。

我这里主要是简述一下他的工作。

方法一:下载解压升级

下载:(1-10每个文件2G,11大约91M。下表还提供了sha1sum。)

解压:

我这里用的是The Unarchiver解压的。

升级:

直接点击运行World of Warcraft Launcher就可以了,等一会儿,就可以升级到5.3.16992。

方法二:Windows版修改

在Windows下升级至最新版5.3.16992,然后将整个文件夹复制到Mac下。(Mac可以直接读取NTFS分区的) (备注:Windows版的客户端请保留好,相当于备份。)

下载这个文件,大约84.2M,sha1sum为067a0d9c321462a99842ddc980d7777306a87088。

下载完成后,打开这个.dmg文件,会出现一组文件,全部复制粘贴到上述的Windows客户端的文件夹内,会提示有几个文件是否覆盖,回答是的。

直接点击运行World of Warcraft Launcher就可以了,等一会儿,就可以正常使用了。

参考链接:

备注:

Memo: Mac OS X Internals

Recently just started to read a few pages in this book, Mac OS X Internals: A Systems Approach, by Amit Singh. It’s a bit old, too much contents about the old PPC.

Then yesterday found an interesting video about same topic, YouTube: Inside the Mac OS X Kernel [24c3]. (Note: some people can’t access it.) This video was public recently, but it’s also a bit old, Dec. 2007. It’s from 24th Chaos Communication Congress: Inside the Mac OS X Kernel, by lucy. (You can find the slides there.)

请点击查看视频

And I am not sure whether one sentence in the presentation is still correct or not now, “The Mac OS X kernel is not 64 bit.”