Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-ext build should ignore the artifacts-dir. #186

Closed
bwinton opened this issue Apr 8, 2016 · 6 comments
Closed

web-ext build should ignore the artifacts-dir. #186

bwinton opened this issue Apr 8, 2016 · 6 comments

Comments

@bwinton
Copy link

bwinton commented Apr 8, 2016

When I build my web-extension, it includes an empty directory (web-ext-artifacts/) where it put the previous build of the XPI.
Since we know that's a place for the artifacts, we should probably not add it to the XPI. (Alternatively, maybe we should skip all empty directories, in case people put stuff in their artifact directory, or build their XPIs into the root directory.)

🌒  🕞  bwinton@15:22/reviewboard-collapse/ (master) $ web-ext build
Building web extension from /Users/bwinton/Programming/addons/WebExtensions/reviewboard-collapse
Your web extension is ready: /Users/bwinton/Programming/addons/WebExtensions/reviewboard-collapse/web-ext-artifacts/reviewboard_collapser-1.0.xpi
🌒  🕞  bwinton@15:23/reviewboard-collapse/ (master) $ unzip -l web-ext-artifacts/reviewboard_collapser-1.0.xpi
Archive:  web-ext-artifacts/reviewboard_collapser-1.0.xpi
  Length     Date   Time    Name
 --------    ----   ----    ----
        0  04-08-16 15:23   web-ext-artifacts/
    16725  04-08-16 15:23   LICENSE
     6056  04-08-16 15:23   icon.png
       97  04-08-16 15:23   README.md
     1638  04-08-16 15:23   content.js
      451  04-08-16 15:23   manifest.json
 --------                   -------
    24967                   6 files
🌒  🕞  bwinton@15:23/reviewboard-collapse/ (master) $
@kumar303
Copy link
Contributor

kumar303 commented Apr 8, 2016

I guess the empty dirs are harmless but it should be easy to fix. Ignoring any empty directory seems fine.

@wagnerand
Copy link
Member

See https://wiki.mozilla.org/Add-ons/Contribute/AMO/Code if this is your first web-ext bug you work on.

@wagnerand
Copy link
Member

Mentor: @kumar303

@iamVP7
Copy link

iamVP7 commented May 11, 2016

I tried web-ext build with the latest source, I found even when I don't have the folder (web-ext-artifacts), I am getting the empty folder in .xpi

@kumar303
Copy link
Contributor

kumar303 commented Jun 1, 2016

Hi @iamVP7 -- how is the patch going? Let me know if you need additional help on it.

@kumar303
Copy link
Contributor

Actually, this isn't such a good first bug because it involves making some architectural changes to FileFilter.

This isn't very high priority because the problematic files inside web-ext-artifacts (such as other XPI files) are already ignored now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants