Merge remote-tracking branch 'upstream/cooker' into cooker-save_migration

This commit is contained in:
icenine451 2022-10-07 09:32:50 -04:00
commit 4831a8c8cf
25 changed files with 68 additions and 138 deletions

View file

@ -68,11 +68,14 @@ conf_write() {
if [ ! -f "$rd_conf" ] if [ ! -f "$rd_conf" ]
then then
mkdir -p /var/config/retrodeck
echo "RetroDECK config file not found in $rd_conf" echo "RetroDECK config file not found in $rd_conf"
echo "Initializing" echo "Initializing"
# Initializing the variables # Initializing the variables
version="$hard_version" # if we are here means that the we are in a new installation, so the version is valorized with the hardcoded one if [ -z $version]; then
version="$hard_version" # if we are here means that the we are in a new installation, so the version is valorized with the hardcoded one
fi
rdhome="$HOME/retrodeck" # the retrodeck home, aka ~/retrodeck rdhome="$HOME/retrodeck" # the retrodeck home, aka ~/retrodeck
roms_folder="$rdhome/roms" # the default roms folder path roms_folder="$rdhome/roms" # the default roms folder path
saves_folder="$rdhome/saves" # the default saves folder path saves_folder="$rdhome/saves" # the default saves folder path

View file

@ -14,19 +14,25 @@
<content_rating type="oars-1.0" /> <content_rating type="oars-1.0" />
<screenshots> <screenshots>
<screenshot type="default"> <screenshot type="default">
<image>https://github.com/XargonWan/RetroDECK/blob/main/res/logo.png?raw=true</image> <image>https://github.com/XargonWan/RetroDECK/blob/cooker/res/logo.png?raw=true</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<image>https://github.com/XargonWan/RetroDECK/blob/main/res/screenshots/screen02.png?raw=true</image> <image>https://github.com/XargonWan/RetroDECK/blob/cooker/res/screenshots/screen01.jpeg?raw=true</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<image>https://github.com/XargonWan/RetroDECK/blob/main/res/screenshots/screen03.png?raw=true</image> <image>https://github.com/XargonWan/RetroDECK/blob/cooker/res/screenshots/screen02.jpeg?raw=true</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<image>https://github.com/XargonWan/RetroDECK/blob/main/res/screenshots/screen04.png?raw=true</image> <image>https://github.com/XargonWan/RetroDECK/blob/cooker/res/screenshots/screen03.jpeg?raw=true</image>
</screenshot> </screenshot>
<screenshot> <screenshot>
<image>https://github.com/XargonWan/RetroDECK/blob/main/res/screenshots/screen05.png?raw=true</image> <image>https://github.com/XargonWan/RetroDECK/blob/cooker/res/screenshots/screen04.jpeg?raw=true</image>
</screenshot>
<screenshot>
<image>https://github.com/XargonWan/RetroDECK/blob/cooker/res/screenshots/screen05.jpeg?raw=true</image>
</screenshot>
<screenshot>
<image>https://github.com/XargonWan/RetroDECK/blob/cooker/res/screenshots/screen06.jpeg?raw=true</image>
</screenshot> </screenshot>
</screenshots> </screenshots>
<description> <description>
@ -68,7 +74,7 @@
<ul> <ul>
<li>IMPORTANT: Started saves migration, the saves are being moved to retrodeck/saves/systemname/emulator upon update, however if some emulators cannot load your saves you have to move them manually to the new path</li> <li>IMPORTANT: Started saves migration, the saves are being moved to retrodeck/saves/systemname/emulator upon update, however if some emulators cannot load your saves you have to move them manually to the new path</li>
<li>Theme revamp and more themes available such as the old one</li> <li>Theme revamp and more themes available such as the old one</li>
<li>Updated RetroArch and its cores from 1.10.2 to 1.11.0</li> <li>Updated RetroArch and its cores from 1.10.2 to 1.11.1</li>
<li>Updated all the standalone emulators to their latest releases</li> <li>Updated all the standalone emulators to their latest releases</li>
<li>Updated ES-DE to 1.2.6</li> <li>Updated ES-DE to 1.2.6</li>
<li>Removed the unavailable emulators from the ES-DE list to avoid confusion</li> <li>Removed the unavailable emulators from the ES-DE list to avoid confusion</li>

View file

@ -67,6 +67,7 @@ modules:
# [ ] Update the VERSION variable # [ ] Update the VERSION variable
# [ ] Update the appdata.xml with the version number and notes # [ ] Update the appdata.xml with the version number and notes
# [ ] change branch into main in retrodeck module (last one) # [ ] change branch into main in retrodeck module (last one)
# [ ] change the screenshots link from cooker to main
# #
- name: version-initialization - name: version-initialization
buildsystem: simple buildsystem: simple
@ -289,7 +290,7 @@ modules:
sources: sources:
- type: git - type: git
url: https://github.com/libretro/RetroArch.git url: https://github.com/libretro/RetroArch.git
commit: 9586d679a8b143fbe1880dff7454fd0809262b55 commit: 389ef31a8f4a505f255e9bfebe882750d22ab490
- type: file - type: file
path: rd-submodules/retroarch/retroarch.cfg path: rd-submodules/retroarch/retroarch.cfg
post-install: post-install:
@ -322,7 +323,7 @@ modules:
sources: sources:
- type: git - type: git
url: https://github.com/libretro/RetroArch.git url: https://github.com/libretro/RetroArch.git
commit: 9586d679a8b143fbe1880dff7454fd0809262b55 commit: 389ef31a8f4a505f255e9bfebe882750d22ab490
- name: retroarch-filers-audio - name: retroarch-filers-audio
subdir: libretro-common/audio/dsp_filters subdir: libretro-common/audio/dsp_filters
make-install-args: make-install-args:
@ -330,7 +331,7 @@ modules:
sources: sources:
- type: git - type: git
url: https://github.com/libretro/RetroArch.git url: https://github.com/libretro/RetroArch.git
commit: 9586d679a8b143fbe1880dff7454fd0809262b55 commit: 389ef31a8f4a505f255e9bfebe882750d22ab490
- name: retroarch-assets - name: retroarch-assets
make-install-args: make-install-args:
- PREFIX=${FLATPAK_DEST} - PREFIX=${FLATPAK_DEST}
@ -351,7 +352,7 @@ modules:
sources: sources:
- type: git - type: git
url: https://github.com/libretro/libretro-core-info.git url: https://github.com/libretro/libretro-core-info.git
commit: 0cc4912691cd1adb87168ce87b6795bdf57b2fe5 commit: 90eff5d4e72db1b5929af7210c9b665c33034536
- name: retroarch-joypad-autoconfig - name: retroarch-joypad-autoconfig
make-install-args: make-install-args:
- PREFIX=${FLATPAK_DEST} - PREFIX=${FLATPAK_DEST}
@ -398,8 +399,8 @@ modules:
- mv ./RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/cores/* /app/share/libretro/cores/ - mv ./RetroArch-Linux-x86_64.AppImage.home/.config/retroarch/cores/* /app/share/libretro/cores/
sources: sources:
- type: archive - type: archive
url: https://buildbot.libretro.com/stable/1.11.0/linux/x86_64/RetroArch_cores.7z url: https://buildbot.libretro.com/stable/1.11.1/linux/x86_64/RetroArch_cores.7z
sha256: a443c18708b3eda12bdc3419e1aaf9d95370580a38f23d0abfa7868b84ff6fdc sha256: fa98c9a5b3aab2b4808ce14726be0393cad36bd033ffe4b8378b7d5e5dede448
# PPSSPP - START # PPSSPP - START
# https://github.com/flathub/org.ppsspp.PPSSPP # https://github.com/flathub/org.ppsspp.PPSSPP
@ -958,8 +959,8 @@ modules:
- ln -s "${FLATPAK_DEST}/pcsx2-qt/usr/bin/pcsx2-qt" "${FLATPAK_DEST}/bin/pcsx2-qt" - ln -s "${FLATPAK_DEST}/pcsx2-qt/usr/bin/pcsx2-qt" "${FLATPAK_DEST}/bin/pcsx2-qt"
sources: sources:
- type: file - type: file
url: https://github.com/PCSX2/pcsx2/releases/download/v1.7.3357/pcsx2-v1.7.3357-linux-AppImage-64bit-AVX2-Qt.AppImage url: https://github.com/PCSX2/pcsx2/releases/download/v1.7.3366/pcsx2-v1.7.3366-linux-AppImage-64bit-AVX2-Qt.AppImage
sha256: 07f293c1aad832f0a908c18ff94c8b545db0cb56230b4f4574ba75071bd91441 sha256: 00790594de30929a11056b95d89650cbf523cc2bb1dc27df3a99e215722ec90c
# PCSX2 - END # PCSX2 - END
@ -1400,8 +1401,8 @@ modules:
# Logo, res # Logo, res
- rm -f /app/share/emulationstation/resources/graphics/splash.svg - rm -f /app/share/emulationstation/resources/graphics/splash.svg
- cp res/splash.svg /app/share/emulationstation/resources/graphics/splash.svg - cp -f res/splash.svg /app/share/emulationstation/resources/graphics/splash.svg
- cp res/icon.svg /app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg - cp -f res/icon.svg /app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg
# Tools # Tools
- mkdir -p ${FLATPAK_DEST}/retrodeck/tools/ - mkdir -p ${FLATPAK_DEST}/retrodeck/tools/

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 194 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

@ -1,5 +1,15 @@
#!/bin/bash #!/bin/bash
# workaround to fix a bug when updating to 0.5.0b where the post update is not triggered
# basically from 0.5 it's not reading the version from the lockfile so it doesn't know from which version it came from and the new rule of global.sh is that if version is unknown it's like a first boot
# remove it in the future
lockfile="/var/config/retrodeck/.lock"
if [[ $(cat $lockfile) == *"0.4."* ]] || [[ $(cat $lockfile) == *"0.3."* ]] || [[ $(cat $lockfile) == *"0.2."* ]] || [[ $(cat $lockfile) == *"0.1."* ]]
then
echo "Running version workaround"
version=$(cat $lockfile)
fi
source /app/bin/global.sh source /app/bin/global.sh
# We moved the lockfile in /var/config/retrodeck in order to solve issue #53 - Remove in a few versions # We moved the lockfile in /var/config/retrodeck in order to solve issue #53 - Remove in a few versions
@ -54,9 +64,10 @@ dir_prep() {
tools_init() { tools_init() {
rm -rfv /var/config/retrodeck/tools/ rm -rfv /var/config/retrodeck/tools/
mkdir -pv /var/config/retrodeck/tools/ mkdir -pv /var/config/retrodeck/tools/
cp -r /app/retrodeck/tools/* /var/config/retrodeck/tools/ cp -rfv /app/retrodeck/tools/* /var/config/retrodeck/tools/
mkdir -pv /var/config/emulationstation/.emulationstation/custom_systems/tools/ mkdir -pv /var/config/emulationstation/.emulationstation/custom_systems/tools/
cp /app/retrodeck/tools-gamelist.xml /var/config/retrodeck/tools/gamelist.xml rm -rfv /var/config/retrodeck/tools/gamelist.xml
cp -fv /app/retrodeck/tools-gamelist.xml /var/config/retrodeck/tools/gamelist.xml
} }
standalones_init() { standalones_init() {
@ -258,7 +269,7 @@ post_update() {
mkdir -pv $rdhome/.logs #this was added later, maybe safe to remove in a few versions mkdir -pv $rdhome/.logs #this was added later, maybe safe to remove in a few versions
# Resetting es_systems, now we need it but in the future I should think a better solution, maybe with sed # Resetting es_settings, now we need it but in the future I should think a better solution, maybe with sed
cp -fv /app/retrodeck/es_settings.xml /var/config/emulationstation/.emulationstation/es_settings.xml cp -fv /app/retrodeck/es_settings.xml /var/config/emulationstation/.emulationstation/es_settings.xml
@ -463,7 +474,6 @@ finit() {
--ok-label "Cancel" \ --ok-label "Cancel" \
--extra-button "Internal" \ --extra-button "Internal" \
--extra-button "SD Card" \ --extra-button "SD Card" \
#--extra-button "Advanced" \
--text="Welcome to the first configuration of RetroDECK.\nThe setup will be quick but please READ CAREFULLY each message in order to avoid misconfigurations.\n\nWhere do you want your roms folder to be located?" ) --text="Welcome to the first configuration of RetroDECK.\nThe setup will be quick but please READ CAREFULLY each message in order to avoid misconfigurations.\n\nWhere do you want your roms folder to be located?" )
echo "Choice is $choice" echo "Choice is $choice"

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
citra-qt
fi

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
dolphin-emu
fi

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
melonDS
fi

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
pcsx2
fi

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
PPSSPPSDL
fi

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the RetroArch configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
retroarch
fi

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
rpcs3
fi

View file

@ -1,10 +0,0 @@
#!/bin/bash
if [ -d ~/retrodeck/roms/pico-8 ]; then
pico_folder=~/retrodeck/roms/pico-8
elif [ -d /run/media/mmcblk0p1/retrodeck/roms/pico-8 ]; then
pico_folder=/run/media/mmcblk0p1/retrodeck/roms/pico-8
fi
echo $pico_folder > ~/retrodeck/.logs/retrodeck.log
~/retrodeck/bios/pico-8/pico8 -desktop ~/retrodeck/screenshots -windowed 0 -home ~/retrodeck/bios/pico-8 -root_path $pico_folder -splore >> ~/retrodeck/.logs/retrodeck.log

View file

@ -1,7 +0,0 @@
#!/bin/bash
zenity --title "RetroDECK" --question --no-wrap --window-icon="/app/share/icons/hicolor/scalable/apps/net.retrodeck.retrodeck.svg" --text="Doing some changes in the emulator's configuration may create serious issues,\nplease continue only if you know what you're doing.\n\nDo you want to continue?"
if [ $? == 0 ]
then
yuzu
fi