This commit is contained in:
XargonWan 2024-08-25 13:11:30 +00:00 committed by GitHub
commit 6e637cefe9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 51 additions and 6 deletions

View file

@ -620,6 +620,9 @@
"pokemini": {
"name": "Nintendo Pokémon Mini"
},
"portmaster": {
"name": "PortMaster"
},
"ports": {
"name": "Ports"
},
@ -972,12 +975,12 @@
}
]
},
"ruffle": {
"description": "Flash Games emulator",
"name" : "Ruffle",
"system" : "flash",
"launch": "ruffle-rd-wrapper.sh"
},
"ruffle": {
"description": "Flash Games emulator",
"name" : "Ruffle",
"system" : "flash",
"launch": "ruffle-rd-wrapper.sh"
},
"melonds": {
"description": "MelonDS Nintendo DS Emulator",
"name": "melonds",
@ -1105,6 +1108,12 @@
"description": "ES-DE Emulation Frontend",
"name": "ES-DE",
"launch": "es-de"
},
"portmaster": {
"description": "PortMaster",
"name": "PortMaster",
"system": "portmaster",
"launch": "PortMaster"
}
}
}

View file

@ -433,6 +433,9 @@ post_update() {
# Placeholder for version 0.9.0b
set_setting_value "$raconf" "libretro_info_path" "/var/config/retroarch/cores" "retroarch"
# TODO: Configurator dialog: Hey, we need to reset ES-DE! (because again ES-DE folders, new theme and such)
prepare_component "reset" "es-de"
prepare_component "reset" "portmaster"
prepare_component "reset" "ruffle"
# TODO: check this

View file

@ -857,6 +857,19 @@ prepare_component() {
sed -i 's#RETRODECKSAVESDIR#'$saves_folder'#g' "/var/config/gzdoom/gzdoom.ini" # This is an unfortunate one-off because set_setting_value does not currently support JSON
fi
if [[ "$component" =~ ^(portmaster|all)$ ]]; then
component_found="true"
# TODO: MultiUser
log i "----------------------"
log i "Prepearing PortMaster"
log i "----------------------"
rm -rf "/var/data/PortMaster"
unzip "/app/retrodeck/PortMaster.zip" -d "/var/data/"
chmod +x "/var/data/PortMaster/PortMaster.sh"
ln -s "/app/bin/PortMaster" "$roms_folder/portmaster/PortMaster.sh"
fi
if [[ "$component" =~ ^(ruffle|all)$ ]]; then
component_found="true"
log i "----------------------"

View file

@ -524,6 +524,26 @@ modules:
url: https://github.com/RetroDECK/MAME/releases/latest/download/RetroDECK-MAME-Artifact.tar.gz
sha256: RETRODECKMAMELATEST
# PortMaster
- name: PortMaster
buildsystem: simple
build-commands:
- mkdir -p "${FLATPAK_DEST}/retrodeck/PortMaster/"
- cp retrodeck.portmaster.zip "${FLATPAK_DEST}/retrodeck/PortMaster.zip"
- install -Dm755 "PortMaster" "${FLATPAK_DEST}/bin/PortMaster"
- ls -lah "${FLATPAK_DEST}/bin"
sources:
- type: file
url: https://github.com/PortsMaster/PortMaster-GUI/releases/download/2024.08.24-1111/retrodeck.portmaster.zip
sha256: 20a78192995a55ffdfdf4cd9343897c6d1ef50351a8800d188e084f90a847726
- type: script
commands:
- |
#!/bin/bash
"/var/data/PortMaster/PortMaster.sh" "$@"
dest-filename: PortMaster
# ES-DE
- name: ES-DE