I am learning to develop addon for Firefox. What i observed is for each jpm sign the size of validated .xpi increases two fold from the previous .xpi file size even though the addon file change is very minimal.
Following illustrates the scenario:
02/22/2016 04:42 PM 10,067 el-0.0.1-fx+an.xpi
02/22/2016 05:52 PM 20,357 el-0.0.2-fx+an.xpi
03/01/2016 01:04 AM 44,443 el-0.0.4-fx+an.xpi
03/01/2016 01:49 AM 89,953 el-0.0.5-an+fx.xpi
03/01/2016 11:34 PM 180,059 el-0.0.6-an+fx.xpi
Can anyone please let me know what is the reason behind this? And it would be good to know the possible option to retain the relative file size to the amount of code change.
Sorry for posting the answer, it will more readable in that way. Well, it took me a while to figure out the issue. Though the
jpm signcreates a temporary@xyz.xpifile, it takes all the.xpifiles in the work directory and bundles them in a single.xpifile leading to exponential increase in size (sum of all the .xpi file sizes).After removing old the
*.xpifiles, now the size of newly signed.xpifile is quite reasonable relative to the code size.In the presence of old
.xpifiles:After removing old
.xpifiles: