Commit graph

35 commits

Author SHA1 Message Date
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
eecccee3c7 update_binary-addons: remove ADDONS_GIT_DIR if delete git dirs is set 2021-10-04 11:33:02 +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
f5dff7ab01 tools/mkpkg/update_binary-addons: exclude vfs.sacd
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>
2021-01-16 09:58:41 +01:00
Matthias Reichl
0a1bd36597 update_binary-addons: drop vfs.nfs and vfs.sacd from exclude list
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>
2020-04-20 13:24:34 +02:00
Matthias Reichl
4dbd3c5196 update_binary-addons: drop kodi-platform bump
kodi-platform version is no longer managed in kodi's git tree and
needs to be updated manually, like p8-platform

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-03-13 10:51:34 +01:00
Matthias Reichl
80e2910726 update_binary-addons: allow specifying branch for unofficial addons
Since Kodi Matrix hasn't branched yet and is still developed in
master the kodi branch name (master) and the branch name used in
addons (Matrix) doesn't match.

Allow to optionally specify the addon branch name on the command line,
eg "./update_binary-addons master Matrix".

This fixes visualization.pictureit bumps for master which picked
up the master branch of the addon instead of the Matrix branch.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-12-29 19:10:54 +01:00
Matthias Reichl
6f7e62d67a update_binary-addons: prefer Kodi branch over HEAD for unofficial addons
This fixes bumping visualization.pictureit which has separate branches
for Leia and Matrix.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-12-29 14:04:01 +01:00
Matthias Reichl
db9b48abfe update_binary-addons: fix PKG_REV bump for unofficial addons
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-12 23:41:36 +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
Matthias Reichl
a65908b1d7 update_binary-addons: exclude vfs.nfs from updates
vfs.nfs isn't released yet

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:59:23 +01:00
Matthias Reichl
9c8860c5bc update_binary-addons: make missing addon check work again
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:59:11 +01:00
Matthias Reichl
3d60aba791 update_binary-addons: remove p8-platform bump
LibreELEC uses a locally managed, newer version of p8-platform

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-03-02 11:18:02 +01:00
Matthias Reichl
3f2eb80d8f update_binary-addons: exclude vfs.sacd 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
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
de946a4c5a update_binary-addons: fix unquoted path variables
also change missing tag ERROR to WARNING

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 20:37:25 +01:00
Matthias Reichl
4c170f5b0b update_binary-addons: add options to keep git dirs and bump PKG_REVs
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 17:44:16 +01:00
Matthias Reichl
d0cc97cdd6 update_binary-addons: update kodi addons to latest tag
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-02-28 17:40:38 +01:00
MilhouseVH
2ffe2df9c0 update_binary-addons: use full rev 2018-08-18 09:52:44 +01: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
MilhouseVH
355be18dbf update_binary-addons: add sha256 support 2017-08-07 18:27:09 +01:00
MilhouseVH
608dd132e3 update_binary-addons: add diagnostic message for resolved hashes 2017-07-07 17:37:22 +01:00
MilhouseVH
bc2553b363
update_binary-addons: make script branch aware 2017-05-27 14:44:19 -07:00
MilhouseVH
3abcbb3f5f tools/update_binary-addons: ignore game.* addons 2017-05-09 11:09:45 +01:00
Lukas Rusak
9ab1255cfa
update_binary-addons: clone kodi if it doesn't exist 2017-02-07 13:46:47 -08:00
MilhouseVH
f4d38b844a kodi-binary-addons: bump missed addons (#1269)
* update_binary-addons: fix cmake paths after move to root

* kodi-binary-addons: bump missed addons
2017-02-02 15:11:11 +04:00
MilhouseVH
fd054a49d8 update_binary-addons: validate package urls against kodi urls 2016-06-27 16:47:41 +01:00
MilhouseVH
8701fc2022 update_binary-addons: Extend support to unofficial addons 2016-06-27 09:05:28 +01:00
Lukas Rusak
f868d258af mkpkg_binary-addons: update to include p8-platform 2016-04-18 00:50:44 -07:00
Stephan Raue
7a71d52428 tools/mkpkg/update_binary-addons: show not packaged and skipped addons
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-03-28 23:21:52 -07:00
Stephan Raue
01ab738b6e tools/mkpkg: rework binary-addons mkpkg script to only update package.mk and dot get and repack sources
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-03-19 00:56:53 -07:00
Renamed from tools/mkpkg/mkpkg_binary-addons (Browse further)