2011-03-04 150 views
1

我一直試圖讓我的Chrome擴展程序自動更新,但它似乎沒有工作。我遵循Google的教程http://code.google.com/chrome/extensions/autoupdate.html,但仍然沒有運氣。我有以下...Chrome擴展程序:自動更新無法使用?

在我的清單文件

"update_url": "http://www.example.com/updates.xml", 

updates.xml

<?xml version='1.0' encoding='UTF-8'?> 
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> 
    <app appid='dmsdmaksadsdkdsmsasdmk'> 
    <updatecheck codebase='http://www.example.com/myapp_1_5.crx' version='1.5.1' /> 
    </app> 
</gupdate> 

如果我更新我的應用程序1.5.2和改變我的清單版本+我的擴展程序中的exsentions菜單中的updates.xml網址和版本和點擊更新擴展程序不會更新。有誰知道爲什麼?我究竟做錯了什麼?

+0

您打包新版本時是否使用與打包第一個版本時生成的相同的密鑰Chrome? – abraham 2011-03-04 17:26:11

回答

3

從查看您的updates.xml文件看來,您將不正確的appid(Extension ID)放置爲缺少的10個字符。它應該包含32個字符,而不是22個字符。

除此之外,其他一切看起來都不錯。