ecmenu/update

28 lines
680 B
Bash
Executable file

#!/usr/bin/env bash
if [ "$(which pacman)" ]
then
yes j | sudo pacman -Syu
CSC=chicken-csc
else
sudo apt -y update
sudo apt -y upgrade
CSC=csc
fi
flatpak update -u -y
sudo chicken-install -s lay
sudo lay -j 8 sdl2 sdl2-ttf sdl2-image srfi-18 srfi-69 toml csm
#${CSC} -o menu -gui ./menu.scm
rm -rf menu *.o *.so
csm -program menu
# Core Updates
cd /tmp
curl -L https://github.com/zilti/retroarch-cores/archive/refs/heads/master.tar.gz | tar -xzf -
cd retroarch-cores-master/aarch64
for FILE in $(find .)
do
unzip -o $FILE -d ~/.var/app/org.libretro.RetroArch/config/retroarch/cores
done
cd /tmp
rm -rf retroarch-cores-master
# The End
sudo shutdown -r now