0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-05-08 17:37:41 +00:00

10 Commits

Author SHA1 Message Date
02121b7274 update_retroplayer-addons: make script more robust
Only auto-update libretro packages with explicit githash and handle
repository / PKG_URL changes automatically.

Signed-off-by: Matthias Reichl <hias@horus.com>
2023-01-27 17:14:28 +01:00
2176284b6e update_retroplayer-addons: improve tag resolution
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>
2022-01-10 19:14:04 +01:00
b6da5ced51 update scripts: rework tag fetching with GitHub API
Use GitHub GraphQL API to sort fetched tags by date instead by version 
number.
2021-10-13 11:30:33 +02:00
bec6d17054 update binary addons scripts: implement GITHUB_API_TOKEN alternative
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.
2021-10-04 11:31:18 +02:00
32adf7fe45 update_common_functions: allow assigning PROJECT and ARCH values 2021-09-22 12:45:44 +02:00
99b6f9c94e update_retroplayer-addons: match lastest tag with kodi branch in name
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>
2020-10-19 23:19:38 +02:00
38a137c923 addon update scripts: refactor repo fetching and package updating
Kodi binary and game addons always reference branches in the addon
repo. The only exception is the kodi-platform package which references
a githash.

This allows us to simplify remote repo fetch and tag / branch HEAD
resolving: we don't need named branches in the working copy but can
simply query remote branches or use a detached branch if we need the
actual contents.

With this change the same (out-of-tree) directory containing cloned
repos can be used to update both kodi Leia and master addon versions,
without needing another clone.

Also refactor the package update code, drop update_to_latest_tag from
common functions (it was only used by update_binary-addons,
update_retroplayer-addons needs slightly different logic) and use
update_pkg function. update_retroplayer-addons now also uses update_pkg
instead of duplicating nearly identical code.

Several variable names have been cleaned up to follow a common naming
pattern.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:29:02 +02:00
3e97dce6c5 addon update scripts: change PKG_REV update logic
When updating versioned / tagged addons reset PKG_REV to 1.

When updating unversioned / untagged addons always bump PKG_REV
as we don't know if the version has been changed or not.

If the "-b/--bump-pkg-rev" option is used PKG_REV will be bumped
on all addons that weren't updated. Use this to ensure all addons
will have a newer version than before.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:12:39 +02:00
78259e03a0 update addons: add possibility to exclude packages in updates
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
8e921e37a9 factor out common binary/retroplayer addon update functions
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:06:15 +01:00