Scripts pack that can help you to make a Firefox theme.
Main script is make-xpi.py written on Python 3. Use it to build xpi and clean temporary files.
$ ./make-xpi.py [TARGET]
or
$ python3 make-xpi.py [TARGET]
Available targets: all, theme, extension and clean. Default is all.
Examples:
$ ./make-xpi.py
$ ./make-xpi.py all
$ ./make-xpi.py theme
$ ./make-xpi.py extension
$ ./make-xpi.py clean
Also you can specifity $VERSION environment variable or use --version to override you value in config.json.
$ ./make-xpi.py --version="0.9" all
$ VERSION="0.9" ./make-xpi.py all
For more details try --help.
$ ./make-xpi.py --help
You need Python 2 and Python 3 in your system's $PATH. For example:
$ python2 --version
Python 2.7.8
$ python3 --version
Python 3.4.1
For override path to python2 you can use $PYTHON2PATH variable, to python3:
$ /your/path/to/python3 make-xpi.py
Following files was created by Mozilla:
-
src/build/makeutil.py
-
src/build/preprocessor.py
-
docs/preprocessor.rst