Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
258 views
in Technique[技术] by (71.8m points)

javascript - How to test Chrome extension for auto-update feature?

I am about to finish my Google Chrome extension. If I'm not mistaking all Chrome apps come with a capability of auto-updating. If so, is there a way for me to test it before I submit my app to the Chrome Web Store?

PS. Also do I need to account for any special conditions in my extension?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

To test the updating procedure, it's best to submit your extension to the Web Store in a non-public fashion.

As you publish an item, you have a choice of Public, Unlisted, and Trusted Testers publication.

  • Public means that the extension will be searchable and everyone can install
  • Unlisted means everyone can install, but they need the direct link to the extension listing; it will not be searchable in the Web Store and not indexable by search engines.
  • Trusted Testers is the same as above, but also restricts installs to a whitelist of Google Accounts.

Go with any non-Public option and you can test it as it would actually behave (including the unfortunate delay of automatic review checks).


The method described by kadaj is no longer valid for Windows, as Chrome will reject any CRX not hosted by the Web Store.

But previously, yes, you could test this with setting up your own hosting (i.e. Dropbox Public folder) of the CRX and its associated update XML, as described in the guide. This still works for non-Windows platforms, as well as Dev/Canary builds on Windows.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...