The signature is broken and therefore the add-on will not work in stable or beta versions of Firefox. It merely works in Developer Edition or Nightly because signing enforcement can be disabled there.
Oh wait, with the changed install.rdf the warning will be showed anyway.
You need to figure out why your add-on gets disabled even after it was signed. It probably is because someone or something changes the add-on contents, that’s why I proposed to remove the “unpack” flag. Non-unpacked add-ons cannot change their own contents (easily). Unpacked ones on the other hand can and I guess that’s what’s happening here.
The current working version being distributed to the users via AMO as of today - its signature is also broken. I get the signature warning in the Add-ons Manager in Developer Edition.
Removing the unpack flag (or setting it to false) breaks the add on. I get an error that says “Error: Could not find or open chineseperakun@gmail.com/dict.sqlite”.
dict.sqlite is a database file within the xpi file, in its root folder. So the problem is that disabling the unpack flag, the add on is not able to open that database file (or any other file within the xpi file), so the add on doesn’t work.
The way this add on works is when the user activates it, the add on creates an index for the dictionary. This is done by executing a SQL query. It enables the add on to instantaneously display english translation popups on the screen as the user mouse-overs chinese words.
We need a way for this to work without breaking the signature
Simply change the location where the sqlite database is stored, by coping or creating it on startup if it not already exist. Best place is probably somewhere in the current profile directory.
While not the best solution for a read-only database, it could work. However, you need to make sure all created files are removed when the add-on gets disabled or uninstalled.
I indexed the sqlite database separately from the add-on, and replaced the unindexed database with the indexed one.
My thinking here is that the add-on will NOT index (or modify) the sqlite database, and therefore will not break the signature.
However, I still need a new signature for the new sqlite database. It still points to the old signature and I still get the signature warning in FF Developer Edition.
Will I get a new signature when I submit the updated add-on to AMO for review?