PORTMASTER: init

This commit is contained in:
XargonWan 2024-08-24 21:46:20 +09:00
parent 36b738e9f2
commit 9adf08a592
4 changed files with 21 additions and 7 deletions

View file

@ -620,6 +620,9 @@
"pokemini": { "pokemini": {
"name": "Nintendo Pokémon Mini" "name": "Nintendo Pokémon Mini"
}, },
"portmaster": {
"name": "PortMaster"
},
"ports": { "ports": {
"name": "Ports" "name": "Ports"
}, },
@ -1094,6 +1097,12 @@
"name": "xemu", "name": "xemu",
"system": "xbox", "system": "xbox",
"launch": "xemu" "launch": "xemu"
},
"portmaster": {
"description": "PortMaster",
"name": "PortMaster",
"system": "portmaster",
"launch": "PortMaster"
} }
} }
} }

View file

@ -378,6 +378,9 @@ post_update() {
# Placeholder for version 0.9.0b # Placeholder for version 0.9.0b
set_setting_value "$raconf" "libretro_info_path" "/var/config/retroarch/cores" "retroarch" 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"
# TODO: check this # TODO: check this
# rm /var/config/emulationstation/.emulationstation # remving the old symlink to .emulationstation as it might be not needed anymore # rm /var/config/emulationstation/.emulationstation # remving the old symlink to .emulationstation as it might be not needed anymore

View file

@ -865,8 +865,9 @@ prepare_component() {
log i "----------------------" log i "----------------------"
rm -rf "/var/data/PortMaster" rm -rf "/var/data/PortMaster"
create_dir "/var/data/PortMaster" unzip "/app/retrodeck/PortMaster.zip" -d "/var/data/"
cp "$config/PortMaster/control.txt" "/var/data/PortMaster/" chmod +x "/var/data/PortMaster/PortMaster.sh"
ln -s "/app/bin/PortMaster" "$roms_folder/portmaster/PortMaster.sh"
fi fi
if [[ $component_found == "false" ]]; then if [[ $component_found == "false" ]]; then

View file

@ -530,12 +530,13 @@ modules:
buildsystem: simple buildsystem: simple
build-commands: build-commands:
- mkdir -p "${FLATPAK_DEST}/retrodeck/PortMaster/" - mkdir -p "${FLATPAK_DEST}/retrodeck/PortMaster/"
- cp control.txt "${FLATPAK_DEST}/retrodeck/PortMaster/" - cp retrodeck.portmaster.zip "${FLATPAK_DEST}/retrodeck/PortMaster.zip"
- install -Dm755 PortMaster.sh "${FLATPAK_DEST}/bin/" - ln -s "/var/data/PortMaster/PortMaster.sh" "${FLATPAK_DEST}/bin/PortMaster"
- chmod +x ${FLATPAK_DEST}/PortMaster
sources: sources:
- type: archive - type: file
url: url: https://github.com/PortsMaster/PortMaster-GUI/releases/download/2024.08.24-1111/retrodeck.portmaster.zip
sha256: sha256: 20a78192995a55ffdfdf4cd9343897c6d1ef50351a8800d188e084f90a847726
# ES-DE # ES-DE