本文介绍了是否可以自动更新在Chrome网上商店发布的Chrome扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该文件对此很不清楚。我知道如果你自己托管你的扩展,你可以通过碰撞版本号来自动更新你的扩展。然而,我不知道的是,如果您可以自行托管,但仍然发布到Chrome网上商店。



我不相信Google会让您手动更新您的通过Web界面扩展。

解决方案

现在有一种方法可以以编程方式更新托管在CWS中的扩展(因为)通过使用。



注册API并通过OAuth 2.0进行授权后,您可以了解现有商品:

  curl \ 
-HAuthorization:Bearer $ TOKEN\
-H x-goog-api-version:2\
-X PUT \
-T $ FILE_NAME \
-v \
https://www.googleapis.com/upload/chromewebstore/v1.1/items/$APP_ID

文档不清楚这是否会创建草稿;在任何情况下,都可以通过API 。



请注意,它仍然需要进行自动审查检查,因此实际更新只有在完成后才可用(通常不到一小时)。


The docs are very unclear about this. I get that you can autoupdate your extension by bumping the version number if you self host your extension. However what I don't know is if you can self host while still publishing to the chrome web store.

I can't believe that Google would make you manually update your extensions via a web interface.

解决方案

There is now a way to update extensions hosted in CWS programmatically (since March 2014) by using Webstore API.

After registering for the API and authorizing through OAuth 2.0, you can push an update for an existing item:

curl \
-H "Authorization: Bearer $TOKEN"  \
-H "x-goog-api-version: 2" \
-X PUT \
-T $FILE_NAME \
-v \
https://www.googleapis.com/upload/chromewebstore/v1.1/items/$APP_ID

Documentation is not clear whether this creates a draft or not; in any case, publishing is also possible through the API.

Please note that it will still be subject to automatic review checks, so the actual update will only be available after they complete (usually under an hour).

这篇关于是否可以自动更新在Chrome网上商店发布的Chrome扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 04:33