mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 23:45:39 +00:00
PORTMASTER: adding POC of manifest and reset function
This commit is contained in:
parent
b2fcce0760
commit
36b738e9f2
|
@ -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
|
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
|
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
|
if [[ $component_found == "false" ]]; then
|
||||||
log e "Supplied component $component not found, not resetting"
|
log e "Supplied component $component not found, not resetting"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -524,6 +524,19 @@ modules:
|
||||||
url: https://github.com/RetroDECK/MAME/releases/latest/download/RetroDECK-MAME-Artifact.tar.gz
|
url: https://github.com/RetroDECK/MAME/releases/latest/download/RetroDECK-MAME-Artifact.tar.gz
|
||||||
sha256: RETRODECKMAMELATEST
|
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
|
# ES-DE
|
||||||
|
|
||||||
- name: ES-DE
|
- name: ES-DE
|
||||||
|
|
Loading…
Reference in a new issue