Auto package Web Extension for Firefox and Chrome

I’ve started to develop extensions for Firefox with the WebExtension but is very annoying do it everytime a package for Firefox and Chrome manually (with removing of applications terms in manifest.json).

So to speed up that part I’ve done a little python script that require only the path of the webextension and automatically generate a xpi file and a zip file in the same folder.

The script: https://github.com/Mte90/Script/blob/master/pack-ext.py
I know about web-ext but use an huge script like that only for packaging is too much.

2 Likes