mozilla/addon-sdk — pull request #301 by warner (2011-12-13 00:18:39+00:00)
Title: 685378: add source data to XPI, for benefit of repacker

This adds a "cfx unpack" command, and a bunch of extra data to the XPI for its benefit. It also overhauls the way cfx creates XPIs: it generates a "compile_map" that maps local disk filenames to paths inside the XPI, so that later the build_xpi() function can just obey the map.

@gozala and @ochameau: I'm most interested in you two reviewing the layout of the XPIs that get produced. I tried to keep them the same (all files go into the same places), but I might have made a mistake.

@mhammond: I'd appreciate it if you could look over the python side (since this is almost entirely on the python side). The cfx linker is not the easiest thing to follow, but since you're one of our local python experts, you're probably the most obvious victim, er, I mean, candidate :). I'd be happy to walk through the code with you whenever you like.