How to maintain versions of a skin for different Kodi versions in my skin's repo?
#1
Hello all,

I would like to know how to maintain different versions of my skin for different Kodi versions through my skin's repo.  Is it just a matter of having "dir" statements in the repo xml with "min" version? Is there out there a python script that will generate the zip files for different skin versions based on what I have in the repo addons.xml? Do I have to create the zip files myself and put in different folders for the different branches? (Leia, Matrix, etc.)? Or is it just that I have to have different branches in my skin's GitHub repo?  

I was able to figure out how to keep the skin's repo updated for a single version of the skin, but I have not figured out how to do it for multiple versions for different Kodi versions.  Any help will be greatly appreciated.

Regards,

Bart
Reply
#2
If you are running windows -> Install a WSL subsystem of your choice (ubuntu for example).


https://github.com/sualfred/kodi-repo-up.../update.sh
(full script incl. simple webgui https://github.com/sualfred/kodi-repo-updater)

HF

Example of the repo addon.xml:

Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repository.fredsrepo" name="Sualfreds Repo" version="1.0.7" provider-name="sualfred">
    <requires>
        <import addon="xbmc.addon" version="12.0.0"/>
    </requires>
    <extension point="xbmc.addon.repository" name="Sualfreds Repo">
        <dir>
            <info compressed="false">https://repo.derfred.net/repositories/addons.xml</info>
            <checksum>https://repo.derfred.net/repositories/addons.xml.md5</checksum>
            <datadir zip="true">https://repo.derfred.net/repositories/</datadir>
        </dir>
        <dir minversion="17.9.0">
            <info compressed="false">https://repo.derfred.net/leia/addons.xml</info>
            <checksum>https://repo.derfred.net/leia/addons.xml.md5</checksum>
            <datadir zip="true">https://repo.derfred.net/leia/</datadir>
        </dir>
        <dir minversion="16.9.0">
            <info compressed="false">https://repo.derfred.net/krypton/addons.xml</info>
            <checksum>https://repo.derfred.net/krypton/addons.xml.md5</checksum>
            <datadir zip="true">https://repo.derfred.net/krypton/</datadir>
        </dir>
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary>Sualfreds Kodi repository</summary>
        <description>Personal repository of Sualfred and home of the Embuary skin</description>
        <disclaimer></disclaimer>
        <platform>all</platform>
        <assets>
            <icon>resources/icon.png</icon>
            <fanart>resources/fanart.jpg</fanart>
        </assets>
    </extension>
</addon>

Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
(2019-07-23, 16:53)sualfred Wrote: If you are running windows -> Install a WSL subsystem of your choice (ubuntu for example).


https://github.com/sualfred/kodi-repo-up.../update.sh
(full script incl. simple webgui https://github.com/sualfred/kodi-repo-updater)

HF

Example of the repo addon.xml:

Code:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repository.fredsrepo" name="Sualfreds Repo" version="1.0.7" provider-name="sualfred">
    <requires>
        <import addon="xbmc.addon" version="12.0.0"/>
    </requires>
    <extension point="xbmc.addon.repository" name="Sualfreds Repo">
        <dir>
            <info compressed="false">https://repo.derfred.net/repositories/addons.xml</info>
            <checksum>https://repo.derfred.net/repositories/addons.xml.md5</checksum>
            <datadir zip="true">https://repo.derfred.net/repositories/</datadir>
        </dir>
        <dir minversion="17.9.0">
            <info compressed="false">https://repo.derfred.net/leia/addons.xml</info>
            <checksum>https://repo.derfred.net/leia/addons.xml.md5</checksum>
            <datadir zip="true">https://repo.derfred.net/leia/</datadir>
        </dir>
        <dir minversion="16.9.0">
            <info compressed="false">https://repo.derfred.net/krypton/addons.xml</info>
            <checksum>https://repo.derfred.net/krypton/addons.xml.md5</checksum>
            <datadir zip="true">https://repo.derfred.net/krypton/</datadir>
        </dir>
    </extension>
    <extension point="xbmc.addon.metadata">
        <summary>Sualfreds Kodi repository</summary>
        <description>Personal repository of Sualfred and home of the Embuary skin</description>
        <disclaimer></disclaimer>
        <platform>all</platform>
        <assets>
            <icon>resources/icon.png</icon>
            <fanart>resources/fanart.jpg</fanart>
        </assets>
    </extension>
</addon>


@sualfred , thank you! I admit to having close to zero Linux knowledge. I am sure I can Google how to install a WSL under Windows 10. Once I do, how do I install your repo updater? What do I need to put in the dirs.conf file? Again, sorry for my noobness with Linux.

Regards,

Bart
Reply
#4
If you already have a addons.xml generator just keep using it Smile I just made my own because of laziness to maintain different repos
The important part is the snippet from above. That's the repo addon index. The values explain itself I guess.

It just has to be a strcuture like this: https://repo.derfred.net -> each subdirectory has its own addons.xml and addons.md5 (hidden on my site). The repo addon.xml just points to the addons.xml and directory which is supported by the running Kodi version.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply

Logout Mark Read Team Forum Stats Members Help
How to maintain versions of a skin for different Kodi versions in my skin's repo?0