0
votes

How can I permanently install my (toy) WebExtension without having to publish it via Mozilla Addons (AMO), when my extension is just a small group of CSS hacks not meant to be published.

The other option, installing it only permanently would be cumbersome to do everytime I need the extension.

EDIT:

To add further input, the page I've linked to says

  1. Zip up your extension's files Edit

At this point your extension will consist of a directory containing a manifest.json and any other files it needs - scripts, icons, HTML documents, and so on. You'll need to zip these into a single file for uploading to AMO.

One trick is that the ZIP file must be a ZIP of the extension's files themselves, not of the containing directory.

and also

Packaged extensions in Firefox are called "XPI files", which are just ZIP files with a different extension.

You don't have to use the XPI extension when uploading to AMO.

In about:addons you can install from file, but whatever way I try to package my extension I get:

enter image description here

even after observing and trying the quoted passage above.

enter image description here

The temporary installation works fine.

2
Please edit your question to focus on one issue. Currently, you're asking how to do X and oh by the way I've got this other problem too (without providing enough info for us to definitively state what you problem is). In addition, the X you are asking about is a bit too broad of a question for SO, but there already are questions which cover it. As for your debugging issue: without access to the .xpi file you created we can only guess as to the reason which is causing Firefox to say it's corrupt. I suggest you search some more and look at the various answers covering each of these issues.Makyen

2 Answers

4
votes

You can get your extension signed by AMO but leave it unlisted or you can use one of the Firefox builds that allow signing to be disabled (Nightly or unbranded builds)

0
votes

You can sign your extension by AMO without publish it.
Then just put an xpi file into

%appdata%\Mozilla\Extensions{ec8030f7-c20a-464f-9b0e-13a3a9e97384}

the browser will accept it.