chusb40
chusb40

Reputation: 11

Chrome extension autoupdate

I created an extension for chrome and I would like to update themselves. However, I am unable to do so. Someone could tell me my mistake?

manifiest.json:

"update_url":"http://myhost.com/update.xml",
"version":"0.0.5.0"

update.xml:

<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="apoelbpnfhemjmnfkejmnfmdfhfhblii">
<updatecheck codebase="http://myhost.com/extension.crx" version="0.0.5.1"/>
</app>
</gupdate>

Sorry if I made mistakes, but I'm not native English.

Upvotes: 1

Views: 367

Answers (1)

Sam Dutton
Sam Dutton

Reputation: 15289

Couple of suggestions...

I think update.xml should have <?xml version='1.0' encoding='UTF-8'?> at the top (if it doesn't already!)

In your sample code, the codebase value has myhost.com as the host -- is this correct in the 'real' update.xml?

The version above is different between manifest.json and update.xml -- is that deliberate here?

Upvotes: 1

Related Questions