-
Notifications
You must be signed in to change notification settings - Fork 46
Development: Releases
The add-on code is both Python 2 and 3 compatible and both Kodi 18 and 19 compatible, and it will stay that way at least until Kodi 19 Matrix Stable is out and mature.
The master branch contains code ready for the current stable Kodi 18.x version as it is. An automated script will make releases for both Kodi 18 Leia and Kodi 19 Matrix from the same source (the difference is only in the xbmc.python version in addon.xml).
Kodi Leia branch will contain code ready for Leia and from that branch will get submitted to the official Kodi repository for Leia (the difference is only in the xbmc.python version in addon.xml). Kodi Matrix branch will contain code ready for Matrix from that branch will get submitted to the official Kodi repository for Matrix (the difference is only in the xbmc.python version in addon.xml and +matrix.1 will get appended to the version).
At the moment sending to the Matrix branch fail because of missing dependencies in Matrix repository. Once all the dependencies are available the add-on will be available in Matrix Kodi repository again.
These commands work from UNIX like systems (UNIX,LINUX,macOS, linux like enviroments on other os,ecc...):
From local to make ZIPs for both leia and matrix simply run:
make
To just run test (default: leia if you are on a branch called matrix, matrix tests will be run):
make test
To run tests for both leia and matrix on same code run:
make test-multi
Make ZIPs skip tests:
make zip
Make ZIP from the last commit on the current branch:
make git-zip
Edit ABI for leia:
make abi-leia
Edit ABI for matrix:
make abi-matrix
To merge to the leia or matrix branch for push to the official repo:
git checkout $BRANCH_NAME
git merge $TAG_NAME --squash --allow-unrelated-histories
For leia make sure the version and abi is set for leia:
make abi-leia
For matrix make sure the version and abi is set for matrix:
make abi-matrix
perform the merge (resolve any conflict by choosing the new version over the old) and push, Travis will take care of the rest.
Never push both Leia and Matrix branches together. First, push leia and after it gets accepted and merged in the official Kodi add-on repo, push matrix. That's an unsolved limitation for now.