without using the -x option, all binary addons are updated to the
latest hash is the branch if there are no tags set.
using the -x option, the binary addons are only updated to a newer
tag. when only a hash is present do not update the PKG_VERSION.
existing default behaviour of the script has not changed.
Co-authored-by: Matthias Reichl <github@hias.horus.com>
The old driver and tools are finally gone, only the firmware files
are important from the rpi firmware repo.
Signed-off-by: Matthias Reichl <hias@horus.com>
kodi game repo incorrectly switched from the bundled version to
libretro repo which doesn't work as it uses git submodules.
Exclude it until that's fixed to avoid build breakage by incorrect
bumps.
Signed-off-by: Matthias Reichl <hias@horus.com>
Make sure we always return the latest tag in the branch and
only apply tag-suffix filtering if more than one tag exists.
This ensures we won't pick up an older (eg -Nexus) tag if newer
(eg -Matrix) tags are present - like it's currently the case with
game addons which only get "-Matrix" tags.
Signed-off-by: Matthias Reichl <hias@horus.com>
The game addons are currently being tagged with "-Matrix"
as suffix which doesn't match the "Nexus" branch of the binary
addons repo.
Allow overriding the tag suffix so we don't fall back to earlier
-Nexus tags of the addon.
usage eg: ./update_retroplayer-addons Nexus Matrix
Signed-off-by: Matthias Reichl <hias@horus.com>
Only accept standard github archive URLs and warn about other URLs
that aren't supported by the update script.
This avoids trashing PKG_VERSION with garbage, eg in libretro-mrboom
Signed-off-by: Matthias Reichl <hias@horus.com>
When environment variable GITHUB_API_TOKEN like in ${HOME}/.${DISTRO,,}/options
is assigned the script will fetch all data direct from Github instead
clone every single package.
game addons have (mostly?) switched from zip to tar.gz links,
add support for extracting the version info from these as well
to fix game addon updates.
Signed-off-by: Matthias Reichl <hias@horus.com>
Report which game addon packages are only present in LE but not in
the kodi game binary addon repo.
These packages are not automatically bumped by the script and should
either be removed from LE or added to the kodi game binary repo.
Signed-off-by: Matthias Reichl <hias@horus.com>
vfs.sacd has been deprecated in favour of audiodecoder.sacd and
removed from official kodi binary repo.
Add it to the exclude list until we finally remove the package so
the update script won't switch the version from tag to githash.
Signed-off-by: Matthias Reichl <hias@horus.com>
If no tag with the kodi branch name can be found, fall back to the
latest tag in the branch.
This fixes ambiguity if both a -Leia and a -Matrix tag point to the
same githash.
Signed-off-by: Matthias Reichl <hias@horus.com>
vfs.nfs has recently been removed from kodi's binary addon repo
and vfs.sacd is now included in LibreELEC
Signed-off-by: Matthias Reichl <hias@horus.com>