How to publish a FireFox WebExtension for local installation only?

不打扰是莪最后的温柔 提交于 2019-12-12 05:26:20

问题


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:

even after observing and trying the quoted passage above.

The temporary installation works fine.


回答1:


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)




回答2:


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.



来源:https://stackoverflow.com/questions/45148795/how-to-publish-a-firefox-webextension-for-local-installation-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!