“立即更新扩展程序”不适用于谷歌浏览器

时间:2013-09-12 23:47:02

标签: json google-chrome google-chrome-extension chromium

chrome://version/

Google Chrome   29.0.1547.66 (Official Build 220848) m
OS  Windows 
Blink   537.36 (@156661)
JavaScript  V8 3.19.18.19
Flash   11,8,800,97
User Agent  Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
Command Line    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end
Executable Path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Profile Path    C:\Users\nikumar\AppData\Local\Google\Chrome\User Data\Default
Variations  b0f8639e-3f4a17df

这是我的manifest.json(请注意我的update_url中的(192.168 ..)中的私有IP。):

{
   "key": "MIGfMA0GC...B",
   "name": "Test Plugin",
   "permissions": [ "http://*/", "https://*/" ],
   "plugins": [ {
      "path": "TestHost.dll",
      "public": true
   } ],
   "version": "1.1",
   "update_url": "http://192.168.35.120/crx.xml"
}

出于某种原因点击"立即更新扩展程序"不起作用。所以我的插件没有得到更新。在wireshark中,我看不到任何HTTP请求。 我很少有其他扩展程序,如adblock和gmail扩展程序等,即使这些扩展程序没有得到更新。

我唯一不同的是我手动添加" update_url"安装我的测试插件后,在我的manifest.json中。那会有用吗?如果是的话,可能是因为我没有在wireshark中看到任何GET请求?

1 个答案:

答案 0 :(得分:0)

你的扩展crx文件应该在manifest.json中有update_url。您需要添加更新路径清单,然后重新打包扩展名。

相关问题