Closed oooookk7 closed 8 years ago
Does this bug happen with the latest version of jpm? Also, could you upload an XPI file that we could use to reproduce this bug?
Yes it does happens with the latest version of jpm. Version used was 1.1.4
.
As for the XPI file, may I privately email you?
Yes, if it's ok to share it with me personally, please do so: kmcmillan@mozilla.com I won't post the source anywhere. This bug is unexpected so I'm just not sure how to reproduce it.
Alright @kumar303, I have sent that to you via email.
Thanks for that. It looks like the package.json
in your XPI is causing the problem because it has an invalid ID. This shouldn't cause a problem though (this is a bug in jpm).
Do you need the package.json
file? You could either remove it or make the ID valid by putting an @
(at sign) in it.
I'm a little confused though because the XPI you sent does indeed look like a SDK add-on. If that's the case, you should be able to just run jpm sign
within your source directory without having to create an XPI first. Actually, the same bug happens when I try that, d'oh.
The fix for this is to make jpm tell you "the extension ID is invalid in package.json"
I added a fix to jpm that shows a better error message about the invalid ID. It's not ideal but there are major problems with this part of the code that would be too hard to fix.
When signing a non-SDK
.xpi
addon extension using thejpm sign
command, I received this error message which prevents me from successfully signing the extension:Additional Details:
extension.xpi
file containsinstall.rdf
andbootstrap.js
files.1.0.5
JPM version and it works. Seems like this fix prevents the signing to work. Is it that non-SDK extensions are no longer supported for unlisted signing?