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" }
]
精彩评论