开发者

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

开发者 https://www.devze.com 2023-03-16 06:21 出处:网络
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 version

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

精彩评论

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

关注公众号