Merge branch 'createaddon' into 'master'

Add TESTME.md information and needed tool to create a kodi package

See merge request StCyr/plugin.video.peertube!1
This commit is contained in:
Cyrille Bollu 2018-11-23 14:10:05 +01:00
commit f1307e142e
3 changed files with 40 additions and 0 deletions

11
TESTME.md Normal file
View File

@ -0,0 +1,11 @@
Under debian install kodi 17 or above and python-libtorrent library
apt install kodi
apt install python-libtorrent
then create a zip from this content using :
./createaddon.sh
Then follow kodi https://kodi.wiki/view/Add-on_manager#How_to_install_from_a_ZIP_file from the created file.

29
createaddon.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
echo "Create a zip package to be able to install it in kodi as external source"
package=plugin.video.peertube
# very lazzy pattern extraction from addon.xml
version=$(grep "name=\"PeerTube\" version=" addon.xml | sed 's/^.*version="\([^"]*\).*$/\1/g')
zip_package=$package-$version.zip
if [[ -d $package ]]
then
echo "[ERROR] '$package' directory does already exists, please remove it or move it away" >&2
exit 1
fi
if [[ -e $zip_package ]]
then
echo "[WARNING] '$zip_package' zip already exists, it will be updated. Please remove it or move it away or change version in addon.xml next time..." >&2
fi
mkdir $package
cp -r addon.xml icon.png fanart.jpg peertube.py LICENSE.txt resources/ service.py $package
zip -r $zip_package $package
echo
echo "[INFO] '$(pwd)/$zip_package' created. You can import it in kodi"

BIN
fanart.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB