Closed
Bug 1275063
Opened 9 years ago
Closed 8 years ago
remove unused files from the b2g installer xpi
Categories
(Firefox OS Graveyard :: B2gInstaller, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jovan.gerodetti, Assigned: jovan.gerodetti, Mentored)
References
Details
Attachments
(1 file)
We didn't pass the AMO review because the xpi contains unused files.
Please only package files actually used, e.g. just the used font files instead of the whole font folder.
Comment 1•9 years ago
|
||
You are welcome to fix this :)
Assignee | ||
Comment 2•9 years ago
|
||
How can I exclude the unnecessary files? :)
Flags: needinfo?(lissyx+mozillians)
Comment 3•9 years ago
|
||
You need to hack in the build, but I cannot help you.
Flags: needinfo?(lissyx+mozillians)
Comment 4•9 years ago
|
||
Jovan, you should just follow the documentation at https://developer.mozilla.org/en-US/docs/Mozilla/B2G_OS/Building_and_installing_B2G_OS/B2G_installer_add-on#Hacking
I know it's painful to depend on patching (even if the patch is trivial) and building m-c, but this is historic (I started working on this at a time where it would have made sense to land the addon as part of webide for example).
You need to play around the moz.build definitions and packaging stuff :)
Flags: needinfo?(titannanomail)
Assignee | ||
Comment 5•9 years ago
|
||
Flags: needinfo?(titannanomail)
Attachment #8758494 -
Flags: review?(lissyx+mozillians)
Comment 6•9 years ago
|
||
left a comment on github
Updated•9 years ago
|
Flags: needinfo?(titannanomail)
Attachment #8758494 -
Flags: review?(lissyx+mozillians)
Updated•9 years ago
|
Assignee: nobody → titannanomail
Assignee | ||
Comment 7•9 years ago
|
||
> % content/subprocess_worker_unix.js (subprocess_worker_unix.js) abi=Linux_x86-gcc3
> % content/subprocess_worker_unix.js (subprocess_worker_unix.js) abi=Linux_x86_64-gcc3
> % content/subprocess_worker_unix.js (subprocess_worker_unix.js) abi=Darwin_x86_64-gcc3
this doesn't work, the file doesn't get added to the package. How is this supposed to work?
Flags: needinfo?(titannanomail) → needinfo?(lissyx+mozillians)
Comment 8•9 years ago
|
||
Well I remember reading this in some documentation. And now, I cannot find any trace of this?
Flags: needinfo?(lissyx+mozillians)
Comment 9•9 years ago
|
||
It's on MDN: https://developer.mozilla.org/en-US/docs/Chrome_Registration#platform_.28Platform-specific_packages.29
Flags: needinfo?(titannanomail)
Assignee | ||
Comment 10•8 years ago
|
||
I played around with different configs and I had to discover that all the % rules have zero impact on the packaging process, also
> % content/linux/ (linux/*) abi=Linux_x86-gcc3
> % content/linux64/ (linux64/*) abi=Linux_x86_64-gcc3
> % content/mac64/ (mac64/*) abi=Darwin_x86_64-gcc3
could be removed. The only thing this lines are causing are warnings at start up that firefox will ignore these lines in the chrome.manifest.
So I think we should just use my current patch.
Flags: needinfo?(titannanomail) → needinfo?(lissyx+mozillians)
Comment 11•8 years ago
|
||
Jovan, according to comment 9 this should work. We need to check why it is not the case: only for XPCOM binary components ? misdocumentation ? broken feature ?
Flags: needinfo?(lissyx+mozillians) → needinfo?(titannanomail)
Assignee | ||
Comment 12•8 years ago
|
||
the link you posted in Comment 9 only talks about content REGISTRATION. I can't find anything about the actual packaging of the xpi, so I guess it works as intended?
Mentor: lissyx+mozillians
Flags: needinfo?(titannanomail) → needinfo?(lissyx+mozillians)
Assignee | ||
Comment 14•8 years ago
|
||
Alexandre, are you going to merge this?
Flags: needinfo?(lissyx+mozillians)
Comment 15•8 years ago
|
||
Sure, as soon as you flag me for review and it's good to go. I don't know if you have any other pending change :)
Flags: needinfo?(lissyx+mozillians)
Assignee | ||
Comment 16•8 years ago
|
||
Comment on attachment 8758494 [details]
TitanNano:master > mozilla-b2g:master
as we talked on IRC, we need to place the logic for the worker file in moz.build, so we should use this patch.
Attachment #8758494 -
Flags: review?(lissyx+mozillians)
Updated•8 years ago
|
Attachment #8758494 -
Flags: review?(lissyx+mozillians) → review+
Comment 17•8 years ago
|
||
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•