Kodi Community Forum

Full Version: How to write repository ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello

I need help. I put my skin on github, but I don't know how to make addon repository for auto update the skin.
I tried it with various lines but without success,exactly what I need to write in xml.
Thanks in advance.
Thank you ironic_monkey
I've already seen this tutorial,xbmc not see my link in xml. I'm doing something wrong,when I open addon in xbmc I see nothing.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repo.skin.MXE"
name="senna99 Add-ons"
version="1.0.0"
provider-name="senna99">
<extension point="xbmc.addon.repository"
name="senna99 Add-on Repository">
<info>https://github.com/senna99/skin.MXE/blob/senna/addon.xml</info>
<checksum>https://github.com/senna99/skin.MXE/blob/senna/README.md</checksum>
<datadir zip="true">https://github.com/senna99/skin.MXE/archive/senna.zip</datadir>
</extension>
<extension point="xbmc.addon.metadata">
<summary>senna99 Add-ons for XBMC</summary>
<description>Download and install Add-ons for XBMC.</description>
<disclaimer>If it breaks, you get to keep the pieces</disclaimer>
<platform>all</platform>
</extension>
</addon>
it's data*dir*

https://github.com/senna99/skin.MXE/archive/seena.zip is not a directory. also the zip file name needs to be be at <datadir>/<addonid>/<addonid>-<version>.zip

see here; http://mirrors.xbmc.org/addons/frodo/ that's the main repo browsable through http. monkey that structure.

furthermore you can't point it to addon.xml, you need to point it to addons.xml - a repository is for holding several add-ons..
Ok thanks you,I will try everything again.
Forgive me.
I confirm that I'm stupid, now I do not know what more should I do, can you write xml structure.
read the wiki. ask specific questions if something is unclear. i cannot write the files for you cause i'm not in control over your file paths. alternatively find somebody else to help out, i don't do hand holding.
Ok thanks
just I don't know where I make mistake,but thank you for answers.
You may want to read what he said

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repo.skin.MXE"
name="senna99 Add-ons"
version="1.0.0"
provider-name="senna99">
<extension point="xbmc.addon.repository"
name="senna99 Add-on Repository">
<info>https://github.com/senna99/skin.MXE/blob/senna/addon.xml</info>
<checksum>https://github.com/senna99/skin.MXE/blob/senna/README.md</checksum>
<datadir zip="true">https://github.com/senna99/skin.MXE/archive/</datadir>
</extension>
<extension point="xbmc.addon.metadata">
<summary>senna99 Add-ons for XBMC</summary>
<description>Download and install Add-ons for XBMC.</description>
<disclaimer>If it breaks, you get to keep the pieces</disclaimer>
<platform>all</platform>
</extension>
</addon>

See the datadir vs what you had.

directory is where file is located not path to actual file.

It may help if you pastebin your files as is and ask specific question, though dont ask me I have no clew about this stuff.
Hello uNiversal
I tried with these lines,but there is nothing in xbmc maybe my github is not ok,I did not have upload all files I still testing skin.
I don't want to be boring,but this is first time how I make github.And actually I do not know what I'm doing,I want only to when I upload new file, to all who have my repo, can have new files through the repo.
Yes I understand what your trying to do.

Everyone has to start somewhere, Im also "new" at git, so I cant help you with your unfinished work. And thats probably why it doesnt work because you're trying to achieve something without having files uploaded and skin finished.

You may want to submit your skin when its finished to the XBMC repo and update it via there.
a repository has nothing to do with a git. it's files, in a directory with a layout i/the wiki have specified, and with definition files that are documented in the wiki. git is for revision control, a completely different task. you can host those files on a http server, or you can host it in a local directory or whatever. i repeat, it's a damn directory with some specific files in it.

here's my local repo definition
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repo.monkey"
name="monkey Add-ons"
version="1.0.0"
provider-name="monkey">
<extension point="xbmc.addon.repository"
name="monkey Add-on Repository">
<info>/home/monkey/repo/addons.xml</info>
<checksum>/home/monkey/repo/addons.xml.md5</checksum>
<datadir zip="true">/home/monkey/repo</datadir>
</extension>
<extension point="xbmc.addon.metadata">
<summary>crap and shit</summary>
<description>crap and crap</description>
<platform>all</platform>
</extension>
</addon>

and here's my local directory
ls -lR /home/monkey/repo
Code:
/home/monkey/repo/addons.xml
/home/monkey/repo/addons.xml.md5
/home.monkey/repo/some.shit/some.shit-1.0.0.zip
/home/monkey/repo/some.shit/changelog-1.0.0.txt
/home/monkey/repo/some.shit/icon.png
/home/monkey/repo/some.shit/fanart.jpg
It is very nice from you,but I am so far from official XBMC repo.
If you see my reputation, you'll know what I'm saying,but I'm trying to learn.

Best Regards

Hello! ironic_monkey
If I understand github is ok.

whether that means the skin addon sufficient for new update.
Looks at these

They are from CURRENT WORKING XBMC REPO

https://github.com/xbmc/xbmc/blob/master.../addon.xml

I presume You need a web server. sor this and more.

I think I have a suggestion.

You come up and offer web hosting service *for his new Fork of XBMC to ironic_monkey and I bet then he in turn will set you up a repo and everything else you need for this. It may be a match made in the universe
Pm ironic monkey and offer this to him.
Thanks for this uNiversal
This means, I need to ask ironic_monkey for hosting on his web server.
Pages: 1 2