mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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>
This commit is contained in:
parent
32adf7fe45
commit
18488b0f0e
@ -160,6 +160,9 @@ for addon in ${ADDONS_DIR}/*.*/ ; do
|
||||
if [[ "$VERSION_INFO" =~ .zip$ ]] ; then
|
||||
# version referenced by githash
|
||||
RETRO_NEW_VERSION=$(sed -e 's|^.*/archive/||' -e 's|\.zip$||' "${RETRO_VERSION_FILE}")
|
||||
elif [[ "$VERSION_INFO" =~ .tar.gz$ ]] ; then
|
||||
# version referenced by githash
|
||||
RETRO_NEW_VERSION=$(sed -e 's|^.*/archive/||' -e 's|\.tar.gz$||' "${RETRO_VERSION_FILE}")
|
||||
else
|
||||
msg_warn "unmanaged version in kodi package: ${VERSION_INFO}"
|
||||
# unmanaged version, repo plus branch
|
||||
|
Loading…
x
Reference in New Issue
Block a user