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:
Matthias Reichl 2021-09-24 13:28:35 +02:00
parent 477b1fd9d3
commit e75a88aa4c

View File

@ -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