Use patch from libretro/RetroArch#17760 instead of using sed

This commit is contained in:
刘皓 2025-04-01 17:23:19 -04:00
parent 436e5f8510
commit e68e029f89
No known key found for this signature in database
GPG key ID: 7901753DB465B711

View file

@ -1119,12 +1119,13 @@ jobs:
cd ~
tag_name=$(curl -s https://api.github.com/repos/libretro/RetroArch/releases/latest | jq -r '.tag_name')
git clone https://github.com/libretro/RetroArch retroarch --depth 1 -b $tag_name
if [ $tag_name = 'v1.20.0' ]
then
sed -i 's/-Wl,-q/-Wl,-q,--pic-veneer/g' retroarch/Makefile.vita
fi
mv mkxp-z_libretro.a retroarch/libretro_vita.a
cd retroarch
if [ $tag_name = 'v1.20.0' ]
then
wget -O ~/retroarch-17760.patch https://github.com/libretro/RetroArch/pull/17760.diff
git apply ~/retroarch-17760.patch
fi
CLICOLOR_FORCE=1 make -f Makefile.vita LIBRETRO=mkxp-z
mv retroarch_vita.self ~/dist/mkxp-z_libretro.self