如何仅发布用于本地安装的 FireFox WebExtension?
How to publish a FireFox WebExtension for local installation only?
当我的扩展只是一小部分 CSS 不打算发布的 hack 时,我如何才能永久安装我的(玩具)WebExtension 而不必 publish it via Mozilla Addons (AMO)。
另一种选择,只是永久安装它,每次我需要扩展时都会很麻烦。
编辑:
要添加更多输入,我链接到的页面说
- 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.
还有
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.
在 about:addons 中,您可以从文件安装,但无论我尝试以何种方式打包我的扩展,我都会得到:
即使在观察并尝试上面引用的段落之后。
临时安装工作正常。
您可以让您的扩展程序由 AMO 签名,但将其保留为未列出,或者您可以使用允许禁用签名的 Firefox 版本之一(每晚或无品牌版本)
您可以通过 AMO 签署您的扩展而无需发布它。
然后直接把一个xpi文件放到
%appdata%\Mozilla\Extensions{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
浏览器会接受它。
当我的扩展只是一小部分 CSS 不打算发布的 hack 时,我如何才能永久安装我的(玩具)WebExtension 而不必 publish it via Mozilla Addons (AMO)。
另一种选择,只是永久安装它,每次我需要扩展时都会很麻烦。
编辑:
要添加更多输入,我链接到的页面说
- 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.
还有
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.
在 about:addons 中,您可以从文件安装,但无论我尝试以何种方式打包我的扩展,我都会得到:
即使在观察并尝试上面引用的段落之后。
临时安装工作正常。
您可以让您的扩展程序由 AMO 签名,但将其保留为未列出,或者您可以使用允许禁用签名的 Firefox 版本之一(每晚或无品牌版本)
您可以通过 AMO 签署您的扩展而无需发布它。
然后直接把一个xpi文件放到
%appdata%\Mozilla\Extensions{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
浏览器会接受它。