lidarr-dl/ra-rom-downloader/setup.bash

58 lines
1.7 KiB
Bash
Raw Normal View History

2023-08-03 15:40:41 +02:00
#!/usr/bin/with-contenv bash
RAHASHER_PATH="/usr/local/RALibretro"
2024-02-04 22:27:00 +01:00
SKYSCRAPER_PATH="/usr/local/skysource"
2023-08-03 15:40:41 +02:00
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 \
2023-08-06 16:35:18 +02:00
wget \
2023-08-10 21:37:27 +02:00
python3-pip \
2023-08-18 13:46:33 +02:00
rclone \
2023-08-10 21:37:27 +02:00
bsdmainutils
2024-02-04 22:27:00 +01:00
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
2024-02-04 22:30:10 +01:00
sed -i 's/sudo //g' update_skyscraper.sh
bash update_skyscraper.sh
2023-08-03 15:40:41 +02:00
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..."
2023-08-18 13:37:59 +02:00
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/ra-rom-downloader/Downloader.bash -o /custom-services.d/Downloader
2023-08-03 15:40:41 +02:00
echo "Done"
chmod 777 /custom-services.d/Downloader
if [ ! -f /config/extended.conf ]; then
echo "Download Extended config..."
2023-08-07 02:23:42 +02:00
curl https://raw.githubusercontent.com/RandomNinjaAtk/arr-scripts/main/ra-rom-downloader/extended.conf -o /config/extended.conf
2023-08-03 15:40:41 +02:00
chmod 777 /config/extended.conf
echo "Done"
fi
exit