Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #list cores in repose
- aptitude search libretro
- #install wanted cores
- sudo apt install libretro-snes9x libretro-bsnes-mercury-balanced libretro-nestopia
- #manually download and install ROMS not in repose
- #!/bin/bash
- core_dir="/usr/lib/x86_64-linux-gnu/libretro/"
- sudo mkdir -p $core_dir
- sudo chmod 777 $core_dir
- list="$(wget -qO- "https://buildbot.libretro.com/nightly/linux/x86_64/latest/")"
- list="$(echo $list|tr '"' "\n"|grep '.zip'|grep -v class)"
- list="$(echo $list|tr ' ' "\n"|while read f;do basename $f;done)"
- core="$(echo $list|tr ' ' "\n"|fzf --prompt "Select a Core: ")"
- [[ $core ]] || exit
- url="https://buildbot.libretro.com/nightly/linux/x86_64/latest/$core"
- wget "$url" -cO /tmp/$core
- unzip /tmp/$core -d $core_dir
- chmod +x $core_dir/$core
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement