mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 14:05:39 +00:00
Merge branch 'cooker' into feat/godot
This commit is contained in:
commit
1a5528f422
|
@ -620,6 +620,9 @@
|
|||
"pokemini": {
|
||||
"name": "Nintendo Pokémon Mini"
|
||||
},
|
||||
"portmaster": {
|
||||
"name": "PortMaster"
|
||||
},
|
||||
"ports": {
|
||||
"name": "Ports"
|
||||
},
|
||||
|
@ -1124,6 +1127,12 @@
|
|||
"name": "ES-DE",
|
||||
"url": "https://retrodeck.readthedocs.io/en/latest/wiki_es_de/esde-guide/.",
|
||||
"launch": "es-de"
|
||||
},
|
||||
"portmaster": {
|
||||
"description": "PortMaster",
|
||||
"name": "PortMaster",
|
||||
"system": "portmaster",
|
||||
"launch": "PortMaster"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
update_rd_conf
|
||||
|
||||
|
|
|
@ -857,6 +857,21 @@ 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/"
|
||||
cp -f "/var/data/PortMaster/retrodeck/PortMaster.txt" "/var/data/PortMaster/PortMaster.sh"
|
||||
chmod +x "/var/data/PortMaster/PortMaster.sh"
|
||||
rm -f "$roms_folder/portmaster/PortMaster.sh"
|
||||
install -Dm755 "/var/data/PortMaster/PortMaster.sh" "$roms_folder/portmaster/PortMaster.sh"
|
||||
fi
|
||||
|
||||
if [[ "$component" =~ ^(ruffle|all)$ ]]; then
|
||||
component_found="true"
|
||||
log i "----------------------"
|
||||
|
|
|
@ -168,6 +168,7 @@ find_system_commands() {
|
|||
substitute_placeholders() {
|
||||
local cmd="$1"
|
||||
log d "Substitute placeholder: working on $cmd"
|
||||
game=$(echo "$game" | sed "s/'/'\\\\''/g") # escaping internal '
|
||||
local rom_path="$game"
|
||||
local rom_dir=$(dirname "$rom_path")
|
||||
|
||||
|
@ -193,6 +194,8 @@ substitute_placeholders() {
|
|||
cmd="${cmd//"%FILENAME%"/"'$file_name'"}"
|
||||
cmd="${cmd//"%ROMRAW%"/"'$rom_raw'"}"
|
||||
cmd="${cmd//"%ROMPATH%"/"'$rom_dir'"}"
|
||||
cmd="${cmd//"%ENABLESHORTCUTS%"/""}"
|
||||
cmd="${cmd//"%EMULATOR_OS-SHELL%"/"/bin/sh"}"
|
||||
|
||||
# Ensure paths are quoted correctly
|
||||
cmd="${cmd//"%ROM%"/"'$rom_path'"}"
|
||||
|
|
|
@ -542,6 +542,33 @@ 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/"
|
||||
- install -Dm755 "PortMaster" "${FLATPAK_DEST}/bin/PortMaster"
|
||||
- install -Dm755 "harbourmaster" "${FLATPAK_DEST}/bin/harbourmaster"
|
||||
- cp PortMaster.zip "${FLATPAK_DEST}/retrodeck/PortMaster.zip"
|
||||
sources:
|
||||
- type: file
|
||||
url: https://github.com/PortsMaster/PortMaster-GUI/releases/download/2024.09.13-1455/retrodeck.portmaster.zip
|
||||
sha256: 4fe3ce3ffdc1d66fe235c8a1a6062a86aa06ee615dba1fe5fc6e9bdd75e9d39c
|
||||
dest-filename: PortMaster.zip
|
||||
- type: script
|
||||
commands:
|
||||
- |
|
||||
#!/bin/bash
|
||||
"/var/data/PortMaster/PortMaster.sh" "$@"
|
||||
dest-filename: PortMaster
|
||||
- type: script
|
||||
commands:
|
||||
- |
|
||||
#!/bin/bash
|
||||
"/var/data/PortMaster/harbourmaster" "$@"
|
||||
dest-filename: harbourmaster
|
||||
|
||||
# ES-DE
|
||||
|
||||
- name: ES-DE
|
||||
|
@ -555,10 +582,8 @@ modules:
|
|||
sources:
|
||||
# Testing the new feat/update-3.1.0
|
||||
- type: archive
|
||||
url: https://github.com/RetroDECK/ES-DE/releases/download/feat%2Fupdate-3.1.0-170924.19/RetroDECK-ES-DE-Artifact.tar.gz
|
||||
sha256: 21b937034be0381dab81b00ec0a9a95210b0610c1a3b66c5ab3b3b0aceae8654
|
||||
#url: https://github.com/RetroDECK/ES-DE/releases/latest/download/RetroDECK-ES-DE-Artifact.tar.gz
|
||||
#sha256: RETRODECKESDELATEST
|
||||
url: https://github.com/RetroDECK/ES-DE/releases/latest/download/RetroDECK-ES-DE-Artifact.tar.gz
|
||||
sha256: RETRODECKESDELATEST
|
||||
|
||||
- name: retrodeck-theme
|
||||
buildsystem: simple
|
||||
|
|
Loading…
Reference in a new issue