Created
May 22, 2026 20:40
-
-
Save mmontuori/50408f358315797e59baddf44750b4b1 to your computer and use it in GitHub Desktop.
RetroPie Skyscraper Execution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| RETROPIE_HOME="/home/pi/RetroPie" | |
| confirm="yes" | |
| platforms=`grep "<name>" /etc/emulationstation/es_systems.cfg | sed -e 's/.*<name>\(.*\)<\/name>.*/\1/'` | |
| for platform in $platforms; do | |
| dir_content=`find ${RETROPIE_HOME}/roms/${platform} -type f 2>/dev/null` | |
| if [ "$dir_content" != "" ]; then | |
| if [ "$confirm" == "yes" ]; then | |
| echo -n "import platform $platform (y/n): " | |
| read scan | |
| if [ "$scan" != "y" ]; then continue; fi | |
| fi | |
| echo "importing platform $platform..." | |
| /opt/retropie/supplementary/skyscraper/Skyscraper -p ${platform} -s import --verbosity 3 | |
| if [ "$confirm" == "yes" ]; then | |
| echo -n "generate gamelist for $platform (y/n): " | |
| read scan | |
| if [ "$scan" != "y" ]; then continue; fi | |
| fi | |
| /opt/retropie/supplementary/skyscraper/Skyscraper -p "${platform}" -g /home/pi/.emulationstation/gamelists/"${platform}" -o /home/pi/.emulationstation/downloaded_media/"${platform}" --flags unattend,skipped,onlymissing --verbosity 3` | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment