Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Update version in addon.xml #31

Open
antonsoroko opened this issue Mar 4, 2024 · 13 comments
Open

Update version in addon.xml #31

antonsoroko opened this issue Mar 4, 2024 · 13 comments

Comments

@antonsoroko
Copy link

Hi.
Looks like you still use version "0.0.1" while in reality you have version 3.0 already:

<addon id="script.elementum.jackett" name="Elementum [COLOR FF0291F7]Jackett[/COLOR]" version="0.0.1" provider-name="fugkco">

I suggest to update addon.xml very time you make a release.

@fugkco
Copy link
Owner

fugkco commented Mar 5, 2024

@antonsoroko
Copy link
Author

then i guess something else is wrong, since it stuck on version 0.0.1 in repository.elementumorg.

@fugkco
Copy link
Owner

fugkco commented Mar 6, 2024

Interesting! Have you validated that the actual files are using the latest version maybe? If not, it's probably an issue with the repository, so you have done the right thing to open an issue there.

@fugkco fugkco reopened this Mar 6, 2024
@fugkco
Copy link
Owner

fugkco commented Mar 6, 2024

I'll leave it open for now until more is known.

@antonsoroko
Copy link
Author

i checked content of poetry.lock and it is old, thus i opened a new issue.

i guess people either use old version or download new versions manually.

@vasilky3
Copy link
Contributor

vasilky3 commented Mar 6, 2024

you can see last release archive have version.
<addon id="script.elementum.jackett" name="Elementum [COLOR FF0291F7]Jackett[/COLOR]" version="3.0.0" provider-name="fugkco">
I don't know how does it uploads to repo. if it is?

@antonsoroko
Copy link
Author

@vasilky3 See the issue I linked here. Elementum uses dynamic repo, it uses GitHub API to identify latest version of addon. It works fine for all "official" elementum addons, but for some reason does not work for this addon.

@elgatito
Copy link

elgatito commented Mar 6, 2024

Yes, that is because repository expects a new version in addon.xml.

That is the way how Kodi identifies a newer version. It does not look on zip file name, but reads addon.xml to parse version.

@fugkco Would be great if you could update a version with addon.xml changes to list actual version name.

Or we can update repository code to get the latest tag to identify version, but that is another story..

@elgatito
Copy link

elgatito commented Mar 7, 2024

@vasilky3

Moreover in las PR i changed naming for *.zip in release. to {name}-{ver}

Yes, since repository is not reading older releases, only the last/current one, so we will need to change pattern for release url.

@fugkco
Copy link
Owner

fugkco commented Apr 13, 2024

@elgatito I'm not sure if I'm following. If the version is updated in addon.xml, why does the URL need to change? The GitHub release URL already contains the version number, so I prefer to keep it out of the filename, as otherwise it renders the latest endpoint of GitHub's releases API useless.

Anyway, I'll make some updates soon so it commits the correct version to the repo as part of a release!

@antonsoroko
Copy link
Author

antonsoroko commented Apr 14, 2024

@fugkco it was answer to comment above. In that PR the name of zip file will be changed for your git repo, thus the name of zip file should be changed in kodi's repo config as well (in URL).

@elgatito
Copy link

@elgatito I'm not sure if I'm following. If the version is updated in addon.xml, why does the URL need to change? The GitHub release URL already contains the version number, so I prefer to keep it out of the filename, as otherwise it renders the latest endpoint of GitHub's releases API useless.

@fugkco Repository addon is not using Github API to get correct url to release assets.
We only get addon.xml file from current state of repository, read version from it, and then construct URL to artifacts dynamically, so if your format of release files changes - repository needs to change contruction format for your repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants