From 36b738e9f285e8ed6899d9c87fd5ebe1c11fadcb Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 22 Aug 2024 13:58:19 +0900 Subject: [PATCH] PORTMASTER: adding POC of manifest and reset function --- functions/prepare_component.sh | 12 ++++++++++++ net.retrodeck.retrodeck.yml | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index 137a5bbe..ffe6ab18 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -857,6 +857,18 @@ 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" + create_dir "/var/data/PortMaster" + cp "$config/PortMaster/control.txt" "/var/data/PortMaster/" + fi + if [[ $component_found == "false" ]]; then log e "Supplied component $component not found, not resetting" fi diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index b095d7e1..ccffe172 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -524,6 +524,19 @@ 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 control.txt "${FLATPAK_DEST}/retrodeck/PortMaster/" + - install -Dm755 PortMaster.sh "${FLATPAK_DEST}/bin/" + sources: + - type: archive + url: + sha256: + # ES-DE - name: ES-DE