Skip to content

Commit

Permalink
Merge pull request #2 from Slayer366/RG351P-GZDoom
Browse files Browse the repository at this point in the history
Add GZDoom, set ecwolf default res to 480x320
  • Loading branch information
wummle committed Mar 3, 2023
2 parents 6fb86e3 + 12f4407 commit 8c9d026
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 2 deletions.
Binary file added 02022023/arkosupdate02022023.zip
Binary file not shown.
Binary file added 12022022/arkosupdate12022022.zip
Binary file not shown.
Binary file added 12092022/arkosupdate12092022.zip
Binary file not shown.
Binary file added 12102022/arkosupdate12102022.zip
Binary file not shown.
Binary file added 12202022/arkosupdate12202022.zip
Binary file not shown.
160 changes: 158 additions & 2 deletions Update-RG351P.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
clear

UPDATE_DATE="10022022-1"
UPDATE_DATE="12202022-1"
LOG_FILE="/home/ark/update$UPDATE_DATE.log"
UPDATE_DONE="/home/ark/.config/.update$UPDATE_DATE"

Expand Down Expand Up @@ -357,6 +357,162 @@ if [ ! -f "/home/ark/.config/.update10022022" ]; then
fi


if [ ! -f "/home/ark/.config/.update12022022" ]; then

printf "\nAdd GZDoom\n" | tee -a "$LOG_FILE"
sudo wget --no-check-certificate https://github.com/wummle/arkos/raw/main/12022022/arkosupdate12022022.zip -O /home/ark/arkosupdate12022022.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate12022022.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate12022022.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate12022022.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate12022022.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/devices/platform/backlight/backlight/backlight/brightness
exit 1
fi

sudo chown -R ark:ark /opt/
sudo chmod ugo+rwx /opt/gzdoom/*
sudo chown -R ark:ark /home/ark/.config/gzdoom/
sudo chmod ugo+rwx -R /home/ark/.config/gzdoom/*
sudo chmod ugo+rwx /opt/quitter/*
sudo chmod ugo+rwx /usr/lib/aarch64-linux-gnu/libSDL2_gfx-1.0.so.0
sudo chmod ugo+rwx /usr/lib/aarch64-linux-gnu/libzmusic.so.1
sudo chmod ugo+rwx /usr/lib/aarch64-linux-gnu/libzmq.so.5.2.2
sudo chmod ugo+rwx /usr/local/bin/doom.sh

if test -z "$(grep 'standalone-gzdoom' /etc/emulationstation/es_systems.cfg | tr -d '\0')"
then
sed -i '/doom.sh/!{p;d;};n;a \\t\t <emulator name=\"\standalone-gzdoom\">\n\t\t <\/emulator>' /etc/emulationstation/es_systems.cfg
fi

cp -f -v /home/ark/.config/gzdoom/gzdoom.ini.351p /home/ark/.config/gzdoom/gzdoom.ini
rm -f -v /opt/gzdoom/gzdoom.351v
rm -f -v /opt/gzdoom/gzdoom.chi

printf "\nEnsure 64bit and 32bit sdl2 is still properly linked\n" | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.18.2 /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.18.2 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"

printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wummle gaming" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update12022022"
fi


if [ ! -f "/home/ark/.config/.update12092022" ]; then

printf "\nUpdate PPSSPP\n" | tee -a "$LOG_FILE"
sudo wget --no-check-certificate https://github.com/wummle/arkos/raw/main/12092022/arkosupdate12092022.zip -O /home/ark/arkosupdate12092022.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate12092022.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate12092022.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate12092022.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate12092022.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/devices/platform/backlight/backlight/backlight/brightness
exit 1
fi

sudo chmod ugo+rwx /opt/ppsspp/PPSSPPSDL

printf "\nEnsure 64bit and 32bit sdl2 is still properly linked\n" | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.18.2 /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.18.2 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"

printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wuMMLe fork" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update12092022"
fi


if [ ! -f "/home/ark/.config/.update12102022" ]; then

printf "\nUpdate RetroArch\n" | tee -a "$LOG_FILE"
sudo wget --no-check-certificate https://github.com/wummle/arkos/raw/main/12102022/arkosupdate12102022.zip -O /home/ark/arkosupdate12102022.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate12102022.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate12102022.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate12102022.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate12102022.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/devices/platform/backlight/backlight/backlight/brightness
exit 1
fi

sudo chmod ugo+rwx /opt/retroarch/bin/*

printf "\nClean up some old unneeded files in the system\n" | tee -a "$LOG_FILE"
sudo rm -rfv /var/cache/* | tee -a "$LOG_FILE"
sudo rm -rfv /var/backups/* | tee -a "$LOG_FILE"
sudo journalctl --vacuum-time=1s

printf "\nEnsure 64bit and 32bit sdl2 is still properly linked\n" | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.18.2 /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.18.2 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"

printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wuMMLe fork" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update12102022"
fi


if [ ! -f "/home/ark/.config/.update12202022" ]; then

printf "\nUpdate PPSSPP to 1.14 and RetroArch to 1.14.0\n" | tee -a "$LOG_FILE"
sudo wget --no-check-certificate https://github.com/wummle/arkos/raw/main/12202022/arkosupdate12202022.zip -O /home/ark/arkosupdate12202022.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate12202022.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate12202022.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate12202022.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate12202022.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/devices/platform/backlight/backlight/backlight/brightness
exit 1
fi


printf "\nEnsure 64bit and 32bit sdl2 is still properly linked\n" | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.18.2 /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.18.2 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"

printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wuMMLe fork" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update12202022"
fi


if [ ! -f "/home/ark/.config/.update02022023" ]; then

printf "\nUpdate PPSSPP to 1.14.4\n" | tee -a "$LOG_FILE"
sudo wget --no-check-certificate https://github.com/wummle/arkos/raw/main/02022023/arkosupdate02022023.zip -O /home/ark/arkosupdate02022023.zip -a "$LOG_FILE" || rm -f /home/ark/arkosupdate02022023.zip | tee -a "$LOG_FILE"
if [ -f "/home/ark/arkosupdate02022023.zip" ]; then
sudo unzip -X -o /home/ark/arkosupdate02022023.zip -d / | tee -a "$LOG_FILE"
sudo rm -v /home/ark/arkosupdate02022023.zip | tee -a "$LOG_FILE"
else
printf "\nThe update couldn't complete because the package did not download correctly.\nPlease retry the update again." | tee -a "$LOG_FILE"
sleep 3
echo $c_brightness > /sys/devices/platform/backlight/backlight/backlight/brightness
exit 1
fi

sudo chmod ugo+rwx /opt/ppsspp/PPSSPPSDL

printf "\nEnsure 64bit and 32bit sdl2 is still properly linked\n" | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0.18.2 /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.18.2 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"

printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wuMMLe fork" /usr/share/plymouth/themes/text.plymouth

touch "/home/ark/.config/.update02022023"
fi


if [ ! -f "$UPDATE_DONE" ]; then


Expand All @@ -366,7 +522,7 @@ if [ ! -f "$UPDATE_DONE" ]; then
sudo ln -sfv /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0.18.2 /usr/lib/arm-linux-gnueabihf/libSDL2-2.0.so.0 | tee -a "$LOG_FILE"

printf "\nUpdate boot text to reflect final current version of ArkOS for the 351 P/M \n" | tee -a "$LOG_FILE"
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wummle gaming" /usr/share/plymouth/themes/text.plymouth
sudo sed -i "/title\=/c\title\=ArkOS 351P/M wuMMLe gaming" /usr/share/plymouth/themes/text.plymouth

touch "$UPDATE_DONE"
rm -v -- "$0" | tee -a "$LOG_FILE"
Expand Down

0 comments on commit 8c9d026

Please sign in to comment.