As I found a solution to my problem and would like to share it for a future reference, I answer my question:
The problem was that I did not use the web-ext
command-line tool to create the .zip / .xpi package. I was able to solve the problem by installing web-ext
and using web-ext build
to create the extension. The result of this operation is a .xpi file containing the project, which I then could upload to the AMO service. Note that manifest.json
in the newly created package is identical to manifest.json
, which I originally provided. However, in addition to manifest.json
, the META-INF
directory was created, which contains the files mozilla.mf
, mozilla.rsa
and mozilla.sf
.
This, however, did not completely solve my problem. After loading the extension in AMO, it cannot be installed and is said to be damaged. Apparently this is what I read somewhere on interwebz (and forgot the source code), Mozilla opens the .zip / .xpi package, which is downloaded to test it, and since my package was not signed, Mozilla was unable to provide it integrity and mark it as untrustworthy (i.e. damaged).
To solve the second problem, I had to sign the extension. This can be done using the following command:
web-ext sign --api-secret YOUR_API_SECTER --api-key YOUR_API_KEY
After that, I was able to download and install the extension.
source share