From 336207e16d6c681ef346535a48a93a322f8a8b15 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Tue, 17 Sep 2024 14:15:18 +0900 Subject: [PATCH] PORT_MASTER: fixed paths and commands + added harbourmaster --- functions/prepare_component.sh | 4 +++- net.retrodeck.retrodeck.yml | 11 +++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index b81c6f0a..03765a58 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -866,8 +866,10 @@ prepare_component() { 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" - ln -s "/app/bin/PortMaster" "$roms_folder/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 diff --git a/net.retrodeck.retrodeck.yml b/net.retrodeck.retrodeck.yml index 0d8b6aec..c508da08 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -548,19 +548,26 @@ modules: buildsystem: simple build-commands: - mkdir -p "${FLATPAK_DEST}/retrodeck/PortMaster/" - - cp retrodeck.portmaster.zip "${FLATPAK_DEST}/retrodeck/PortMaster.zip" - install -Dm755 "PortMaster" "${FLATPAK_DEST}/bin/PortMaster" - - ls -lah "${FLATPAK_DEST}/bin" + - 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