PORTMASTER: adding POC of manifest and reset function

This commit is contained in:
XargonWan 2024-08-22 13:58:19 +09:00
parent b2fcce0760
commit 36b738e9f2
2 changed files with 25 additions and 0 deletions

View file

@ -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

View file

@ -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