Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Development: Make guide

Arv.Void edited this page Apr 30, 2020 · 1 revision

At the moment Kodi 18.x Leia is the stable release and the code after operations will always return to those defaults.

On Unix-like operating systems, make is a utility for building and maintaining from source code. This source includes a makefile so make can be used locally (on compatible operating systems/environments) or in CI/CD workflows.

Depending on the system you are on you need this installed to use all this command:

(If you get errors you might miss some of this dependencies)

  • libxml2-utils (on Ubuntu/Debian sudo apt -y install libxml2-utils)
  • gettext (on Ubuntu/Debian sudo apt -y install gettext)
  • python -m pip install --upgrade pip
  • pip install -r requirements.txt
  • pip install kodi-addon-checker

List of intended operations from source root (most common):

make		   # This will run all checks and create Zip for both Leia and Matrix
make test	   # Will run just test for Leia
make test-multi	   # Will run test for both Leia and Matrix
make test-light	   # Run just basic python sanity tests
make kodi-all	   # Will run Kodi add-on cheker for both Leia and Matrix
make kodi-leia	   # Will run Kodi add-on cheker for Leia
make kodi-matrix   # Will run Kodi add-on cheker for Matrix
make zip	   # Will make zip for both Leia and Matrix
make zip-leia	   # Will make zip just for Leia
make zip-matrix	   # Will make zip just for Matrix
make git-zip	   # Will make zip from last commit
make abi-leia	   # Will edit addon.xml for Leia
make abi-matrix    # Will edit addon.xml for Matrix
make test-language-sync		# Will check if language files are in sync
make test-language-maintained	# Will inform of status of translations