2013-01-05 41 views
1

我在更新我寫的Firefox擴展時遇到問題。它似乎下載新版本,卸載舊版本,然後重新安裝舊版本。Firefox擴展更新下載但無法安裝

我打包使用以下命令延長:

cfx xpi --update-link=https://www.myextension.com/firefox/myextension.xpi --update-url=https://www.myextension.com/firefox/myextension.update.rdf 

我跑的Firefox與有關:config屬性 「extensions.logging.enabled」 設置爲true,並得到了以下日誌:

*** LOG addons.updates: Requesting https://www.myextension.com/firefox/myextension.update.rdf 
*** LOG addons.updates: Found an update entry for [email protected] version 0.1.1 
*** LOG addons.xpi: Download started for https://www.myextension.com/firefox/myextension.xpi to file C:\Users\BENMCC~1\AppData\Local\Temp\tmp-mki.xpi 
*** LOG addons.xpi: Download of https://www.myextension.com/firefox/myextension.xpi completed. 
*** LOG addons.repository: Requesting https://services.addons.mozilla.org/en-US/firefox/api/1.5/search/guid:myextension%40myextension.com?src=firefox&appOS=WINNT&appVersion=17.0.1 
*** LOG addons.xpi: Starting install of https://www.myextension.com/firefox/myextension.xpi 
*** LOG addons.xpi: Addon [email protected] will be installed as a packed xpi 
*** LOG addons.xpi: Calling bootstrap method shutdown on [email protected] version 0.1 
*** LOG addons.xpi: Calling bootstrap method uninstall on [email protected] version 0.1 
*** LOG addons.xpi: Loading bootstrap scope from C:\Users\Ben McCann\AppData\Roaming\Mozilla\Firefox\Profiles\pr7jcnq3.default\extensions\[email protected] 
*** LOG addons.xpi: Calling bootstrap method install on [email protected] version 0.1 
*** LOG addons.xpi: Install of https://www.myextension.com/firefox/myextension.xpi completed. 
*** LOG addons.xpi: Calling bootstrap method startup on [email protected] version 0.1 

它將xpi下載到C:\ Users \ BENMCC〜1 \ AppData \ Local \ Temp \ tmp-mki.xpi,但似乎是從C:\ Users \ Ben McCann \ AppData \ Roaming \ Mozilla \火狐\ Profiles文件\ pr7jcnq3.default \分機\ [email protected]。我檢查過後者的xpi,它有錯誤的版本號。

任何想法可能會發生什麼或如何調試問題?

回答