Question: how to create xpi file?
Answer: Do as per the following while using 7z Select only the inner contents and not the outer folder. Enter the filename as filename. xpi and choose archive format as zip in the prompt that appears while zipping. You will find a valid xpi file created.