mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
Merge pull request #9422 from heitbaum/libretro
libretro-scummvm: allow build without wget using curl
This commit is contained in:
commit
04ddbe73da
@ -0,0 +1,16 @@
|
||||
--- a/backends/platform/libretro/scripts/bundle_datafiles.sh 2024-02-12 22:13:53.000000000 +0000
|
||||
+++ b/backends/platform/libretro/scripts/bundle_datafiles.sh 2024-10-20 11:20:58.695910358 +0000
|
||||
@@ -108,7 +108,12 @@
|
||||
if [ ! $3 = "bundle" ]; then
|
||||
|
||||
# Update from libretro ScummVM.dat
|
||||
-wget -NO "$BUILD_PATH"/ScummVM.dat https://raw.githubusercontent.com/libretro/libretro-database/master/dat/ScummVM.dat
|
||||
+if command -v wget >/dev/null; then
|
||||
+ wget -NO "$BUILD_PATH"/ScummVM.dat https://raw.githubusercontent.com/libretro/libretro-database/master/dat/ScummVM.dat
|
||||
+else
|
||||
+ # if wget is not available use curl
|
||||
+ curl -f -o "$BUILD_PATH"/ScummVM.dat https://raw.githubusercontent.com/libretro/libretro-database/master/dat/ScummVM.dat
|
||||
+fi
|
||||
[ -f "$BUILD_PATH"/ScummVM.dat ] && SUPPORTED_EXTENSIONS="$(cat $BUILD_PATH/ScummVM.dat | grep 'rom (' | sed -e 's/\" .*//g' -e 's/.*\.//g' | sort -u | tr '\n' '|')" || SUPPORTED_EXTENSIONS="$ALLOWED_EXT"
|
||||
|
||||
# Create core.info file
|
Loading…
x
Reference in New Issue
Block a user