开发者

How do I package an NPAPI Chrome plugin for 32 and 64 bit Linux?

I'm trying to package a Chrome extension that includes native plugins for all OSes. What do I need to include in the manifest.json to get it to load in both开发者_如何学编程 32 bit and 64 bit versions of Linux?


I have answered a similar question in the past that you can look at as well: Google Chrome Extensions and NPAPI

If you want to package a Chrome extension that includes plugins for all OSes, including 32bit and 64bit versions you just list them sequentially. I would do something like the following within your manifest:

"plugins": [
    { "path": "win_x86-npapi.dll" },
    { "path": "linux_x86-npapi.so" },
    { "path": "linux_x86_64-npapi.so" },
    { "path": "darwin-npapi.plugin" }
  ]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜