Building the sourcecode #378
Comments
|
Hey @thany, thanks for reaching out. To clarify, this process for building the source code is designed for local development. Once you've followed the steps in the "Installation" and "Building" sections of the Basically, after you've built the extension, you need to head to the You can also load the extension into Chrome following a similar process. Head to the "Extensions" section of the browser ( |
|
No, it's not solved yet, don't close this ticket so eagerly ;) Shouldn't there also be a step to build a production-ready addon file? I've set the build script to build for production: And indeed, my goal is not development. My goal is to build the extension myself and install it like I would from addons.mozilla.org. So how do I do that? Surely, you do that as well, and whatever it is you do for that, should be part of the "build for production" process. |
|
If you would like to install a production build of an extension as you would from https://addons.mozilla.org/en-US/firefox/extensions/, you would have to create a build and submit it to Mozilla for their approval before it could be released to the store (see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Package_your_extension_ and https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Distribution/Submitting_an_add-on). While our source code is accessible on GitHub, it is still copyrighted and this form of distribution would violate the terms of our license (see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Distribution#Code_disputes). Apologies for any confusion there. The I'm going to keep this issue closed as it is not a bug report, nor is it a feature request for the Ghostery extension itself. |
|
I'm not going to publish it. I just want to build the extension in such a way that it becomes an installable file. That step is missing from the script or documentation. Why is that so much to ask?? |
|
When we submit a build to Mozilla for release, we submit it as a regular ZIP file for them to build into an XPI on their end, as the docs that I linked in my previous message explain. Since building the extension into an XPI is not part of our development or release process, we cannot prioritize adding an XPI builder into our repository at this time. If you would like to build the extension into a CRX file, which is the file type used to load extensions in the Google Chrome browser, then you can use the "Pack extension" option in the Extensions section there (please see my initial response if you need help navigating to that page). |
Description
I can build the source code, but it's not producing a usable result. It produces a collection of JS files and a css folder, which is hardly a useful result. For starters, a collection of JS files is not a browser addon...
Expected Behavior
I was expecting an XPI file for Firefox at least, and similar addons packages for other browsers.
Actual Behavior
A dist folder with JS files.
Steps to Reproduce
yarn install --frozen-lockfileyarn upgradeyarn run build.prodExactly as described in the readme.
Versions
The text was updated successfully, but these errors were encountered: