Commit graph

34 commits

Author SHA1 Message Date
Garrett Brown
e7ab0e735b update_retroplayer-addons: remove excluded addons 2023-04-10 16:12:06 +02:00
Matthias Reichl
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
Matthias Reichl
c459090348 update_retroplayer-addons: temporarily add picodrive to exclude list
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>
2022-11-12 16:32:54 +01:00
Matthias Reichl
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
Matthias Reichl
a811118efe update_retroplayer-addons: allow overriding the tag suffix
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>
2022-01-10 19:14:04 +01:00
Matthias Reichl
6d6bab32bd update_retroplayer-addons: do stricter libretro version checks
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>
2022-01-10 19:14:04 +01:00
Portisch
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
Portisch
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
Matthias Reichl
18488b0f0e update_retroplayer-addons: support tar.gz archive links
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>
2021-09-24 17:21:53 +02:00
Matthias Reichl
255bea76b4 update_retroplayer-addons: check for orphaned addon packages
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>
2021-02-17 11:10:28 +01:00
Matthias Reichl
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
Matthias Reichl
46f0ad43d8 update_retroplayer-addons: stop defaulting to retroplayer branch
The kodi-game binary addon repo now contains Leia and Matrix,
like the kodi binary addon repo, so make the branch name a
mandatory option.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-01-30 10:55:55 +01:00
Matthias Reichl
69a7660940 update_retroplayer-addons: drop loop over single item
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:29:02 +02:00
Matthias Reichl
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
Matthias Reichl
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
Matthias Reichl
7cf95c6b99 addon update scripts: set modes via command line options
Use command line options to select PKG_REV bump and deleting
cloned git dis after update. git dirs are now kept by default,
deleting them has to be explicitly enabled via "-d".

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 16:12:39 +02:00
MilhouseVH
d4f6326142 packages: align source code licence usage with project licence 2019-03-26 18:05:50 +00:00
Matthias Reichl
d209e704ab update_retroplayer-addons: exclude non-working game addons
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 15:59:13 +01:00
Matthias Reichl
8fb7fbbaf7 update_retroplayer-addons: exclude game.netplay from updates
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
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
Matthias Reichl
673f7d28a2 update_retroplayer-addons: don't bump PKG_REV on game addon bumps
As we are using tags, and the addon version should match the tag
version bumping PKG_REV on kodi game addon updates isn't needed.

As with update_binary-addons bumping PKG_REV may be wanted as
we are switching from HEAD to tags and can be enabled by setting
the PKG_BUMP_REV environment variable.

PKG_REV will also be bumped the script is run with "-f" as before.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:17:19 +01:00
Matthias Reichl
8df1fcbfeb update_retroplayer-addons: switch to using tags
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:10:38 +01:00
Matthias Reichl
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
Matthias Reichl
ca9897e76a update_retroplayer-addons: fix git directory clash
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 20:38:12 +01:00
Matthias Reichl
dc9ceda279 update_retroplayer-addons: handle all game.* addons
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-01-27 14:04:44 +01:00
Matthias Reichl
7b11ece9b4 update_retroplayer-addons: colorize warnings and errors
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-01-27 14:04:44 +01:00
Matthias Reichl
9a6c8520a4 update_retroplayer-addons: sync libretro core versions with kodi
Instead of bumping libretro cores to their current master version
use the githash from depends file in kodi game addon.

This ensures we ship the same libretro core versions as Kodi.

When a kodi game addon is bumped the libretro package is automatically
bumped, too.

If the script is invoked with the "-f" option all libretro packages
will be synced to the version specified in the kodi game addon.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-01-26 17:43:51 +01:00
CvH
765e99cfd6 update_retroplayer-addons: use default branch instead of master 2018-11-17 16:48:05 +01:00
Lukas Rusak
04e382512b
update_retroplayer-addons: use git ls-remote to avoid cloning the entire repo 2018-10-23 16:22:12 -07:00
CvH
ec9319ec8d spdx: tools/ 2018-07-17 23:58:49 +02:00
MilhouseVH
6b9155cf8b tools: source packages reliably 2018-02-01 02:59:57 +00:00
Lukas Rusak
6ae99dcc6b
tools/mkpkg/update_retroplayer-addons: use single branch 2017-09-05 10:35:29 -07:00
MilhouseVH
adfefe15f1 update_retroplayer-addons: add sha256 support 2017-08-07 18:27:09 +01:00
Lukas Rusak
94aa0effb8
update_retroplayer-addons: add script 2017-02-07 14:07:06 -08:00