安装自托管的Chrome扩展 [英] Installing self hosted chrome extension
问题描述
我们为团队成员创建了一个Chrome扩展,我们希望自己托管它。
我知道非网店的安装策略,我觉得就像我设置正确,但它不起作用。
这是我有:
我
{
update_url:更新网址和扩展ID键, https://ourownserver.com/extensions/updates.xml,
key:obljkonioibfihfjbaiidbobmckpkned,
....
}
我创建了 updates.xml
像这样:
< gupdate xmlns =http://www.google.com/update2/responseprotocol =2.0>
< app appid =obljkonioibfihfjbaiidbobmckpkned>
< updatecheck codebase =some-extension.crxversion =3.6/>
< / app>
< / gupdate>
我使用了 chrome:// extensions
打包.crx和.pem文件并将它们全部放入 https://ourownserver.com/extensions/
中,如下所示:
我使用regedit添加
然后关闭Chrome并重新打开它
完成所有这些操作后,我预计要去 https:/ /ourownserver.com/extensions/extensionName.crx
将会安装扩展,并且它将被启用。但是,如果我去 https://ourownserver.com/extensions/extensionName.crx
,我仍然可以得到:
在扩展选项卡上,它已安装但已禁用,并且显示以下消息:
我以为我没有正确添加注册表项,但无法找到一个更详细的演练是肯定的。
我在这里做错了什么? 解决方案您的更新XML需要包含扩展CRX的绝对路径,而不是相对路径。例如:
< gupdate xmlns =http://www.google.com/update2/responseprotocol = 2.0\" >
< app appid =obljkonioibfihfjbaiidbobmckpkned>
< updatecheck codebase =https://ourownserver.com/extensions/some-extension.crxversion =3.6/>
< / app>
< / gupdate>
We have created a chrome extension for our Team Members and we want to self host it.
I am aware of the non-web store install policies and I feel like I have set this up correctly but it does not work.
Here is what I have:
I set up my manifest with an update url and an extension id key like this:
{
"update_url": "https://ourownserver.com/extensions/updates.xml",
"key":"obljkonioibfihfjbaiidbobmckpkned",
....
}
I created updates.xml
like this:
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="obljkonioibfihfjbaiidbobmckpkned">
<updatecheck codebase="some-extension.crx" version="3.6"/>
</app>
</gupdate>
I used the chrome://extensions
to package the .crx and .pem files and droped them all into https://ourownserver.com/extensions/
like this:
I used regedit to add the ExtensionInstallWhitelist
and ExtensionInstallSources
under HKEY_LOCAL_MACHINE
as follows:
I then closed Chrome and re-opened it
After doing all of this, I expect that going to https://ourownserver.com/extensions/extensionName.crx
will instal the extension and that it will be enabled. However, if I go https://ourownserver.com/extensions/extensionName.crx
I still get:
And on the extensions tab, it is installed but disabled and has this message:
Im thinking that I have not added the registry entries correctly but I cant find a more detailed walkthrough to be sure.
What am I doing wrong here?
Your update XML needs to contain the absolute path of the extension CRX, rather than the relative one. For example:
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="obljkonioibfihfjbaiidbobmckpkned">
<updatecheck codebase="https://ourownserver.com/extensions/some-extension.crx" version="3.6"/>
</app>
</gupdate>
这篇关于安装自托管的Chrome扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!