#!/usr/bin/with-contenv bash RAHASHER_PATH="/usr/local/RALibretro" SKYSCRAPER_PATH="/usr/local/skysource" echo "************ install dependencies ************" echo "************ install and upgrade packages ************" apt-get update apt-get upgrade -y apt-get install -y \ jq \ unzip \ gzip \ git \ p7zip-full \ curl \ unrar \ axel \ zip \ wget \ python3-pip \ rclone \ bsdmainutils echo "************ skyscraper ************" echo "************ install dependencies ************" echo "************ install packages ************" apt-get update apt-get install -y \ build-essential \ wget \ qt5-default apt-get purge --auto-remove -y apt-get clean echo "************ install skyscraper ************" mkdir -p ${SKYSCRAPER_PATH} cd ${SKYSCRAPER_PATH} wget https://raw.githubusercontent.com/Gemba/skyscraper/master/update_skyscraper.sh sed -i 's/sudo //g' update_skyscraper.sh bash update_skyscraper.sh echo "************ RAHasher installation ************" mkdir -p ${RAHASHER_PATH} wget "https://github.com/RetroAchievements/RALibretro/releases/download/1.4.0/RAHasher-x64-Linux-1.6.0.zip" -O "${RAHASHER_PATH}/rahasher.zip" unzip "${RAHASHER_PATH}/rahasher.zip" -d ${RAHASHER_PATH} chmod -R 777 ${RAHASHER_PATH} mkdir -p /custom-services.d echo "Download Downloader service..." curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/ra-rom-downloader/Downloader.bash -o /custom-services.d/Downloader echo "Done" chmod 777 /custom-services.d/Downloader if [ ! -f /config/extended.conf ]; then echo "Download Extended config..." curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/ra-rom-downloader/extended.conf -o /config/extended.conf chmod 777 /config/extended.conf echo "Done" fi if [ -f /custom-services.d/scripts_init.bash ]; then # user misconfiguration detected, sleeping... sleep infinity fi exit