Add TESTME.md information and needed tool to create a kodi package
- add createaddon.sh script to create a package containing only needed artefacts - follow https://kodi.wiki/view/Add-on_structure - add fanart.jpg - indicated as 'must be included' in https://kodi.wiki/view/Add-on_rules
This commit is contained in:
parent
4d0e5c76af
commit
b2c823b212
|
@ -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.
|
|
@ -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"
|
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
Loading…
Reference in New Issue