SDK for building Nuvola Player integration scripts.
- Python >= 3.4
pip3 install -U nuvolasdk
- or
sudo pip3 install -U nuvolasdk
python3 setup.py build
python3 setup.py install --prefix="$(PREFIX)" --root="$(DEST)"
- GNU Make
- SVG optimizer: Scour
- SVG converter: Lasem, librsvg, GraphicsMagick, ImageMagick
- Pillow >= 4.3
- Run
./configure
to generateMakefile
andmetadata.json
from details inmetadata.in.json
. Recognized options:--prefix
: Specify a custom build prefix instead of/usr/local
. Example:./configure --prefix=/usr
- Run
make all
to build the project. - Run
make install
to install the project. Recognized variables:DESTDIR
: A custom installation destination (defaults to the filesystem root). Example:make DESTDIR=/tmp/build/package install
- Run
make uninstall
to uninstall the project. Recognized variables:DESTDIR
: A custom installation destination (defaults to the filesystem root). Example:make DESTDIR=/tmp/build/package uninstall
nuvolasdk new-project
When run without additional arguments, user will be asked to provide necessary metadata for the script.
In order to get information about available arguments run nuvolasdk new-project --help
.
nuvolasdk check-project
Please run this check before a code review.
nuvolasdk convert-project
If used on new-style projects using Nuvola SDK, the project is updated to the latest standards.
If used on old-style projects without SDK, the project is converted to a new-style project with SDK. Notable changes:
- The metadata file
metadata.json
has been renamed tometadata.in.json
and contains a newbuild
section. - A new script
configure
loads the SDK to readmetadata.in.json
in order to generateMakefile
andmetadata.json
(without thebuild
section but with new metadata fromconfigure
process. - The old
Makefile
is renamed toMakefile.old
and can be safely removed once the new-style project build successfully. - The scripts
svg-convert.sh
andsvg-optimize.sh
are removed because they are included in the SDK.
See CHANGELOG.md.