From 251c76f382e827f0270856ef41d5b48da5befcb8 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 19 Sep 2024 14:39:21 +0900 Subject: [PATCH] XENIA: first add --- automation_tools/automation_task_list.cfg | 1 + .../retrodeck/reference_lists/features.json | 9 +++++++++ functions/prepare_component.sh | 11 +++++++++++ net.retrodeck.retrodeck.yml | 19 +++++++++++++++++++ 4 files changed, 40 insertions(+) diff --git a/automation_tools/automation_task_list.cfg b/automation_tools/automation_task_list.cfg index 979b5998..ae465be1 100644 --- a/automation_tools/automation_task_list.cfg +++ b/automation_tools/automation_task_list.cfg @@ -24,3 +24,4 @@ hash^RETRODECKMELONDSLATEST^https://github.com/RetroDECK/net.kuribo64.melonDS/re hash^RETRODECKSOLARUSLATEST^https://github.com/RetroDECK/org.solarus_games.solarus.Launcher/releases/latest/download/RetroDECK-solarus-Artifact.tar.gz hash^RETRODECKGZDOOMLATEST^https://github.com/RetroDECK/org.zdoom.GZDoom/releases/latest/download/RetroDECK-gzdoom-Artifact.tar.gz hash^RETRODECKMAMELATEST^https://github.com/RetroDECK/MAME/releases/latest/download/RetroDECK-MAME-Artifact.tar.gz +hash^XENIACANARYLATESTSHA^https://github.com/xenia-canary/xenia-canary/releases/latest/download/experimental/xenia_canary.zip diff --git a/config/retrodeck/reference_lists/features.json b/config/retrodeck/reference_lists/features.json index 6da76574..1f6a1d10 100644 --- a/config/retrodeck/reference_lists/features.json +++ b/config/retrodeck/reference_lists/features.json @@ -776,6 +776,9 @@ "x68000": { "name": "Sharp X68000" }, + "xbox360": { + "name": "Microsoft Xbox 360" + }, "xbox": { "name": "Microsoft Xbox" }, @@ -1133,6 +1136,12 @@ "name": "PortMaster", "system": "portmaster", "launch": "PortMaster" + }, + "xenia": { + "description": "Xenia Canary Xbox360 Emulator", + "name": "Xenia Canary", + "system": "xbox360", + "launch": "xenia-canary" } } } diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index 03765a58..e2198463 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -890,6 +890,17 @@ prepare_component() { fi + if [[ "$component" =~ ^(xenia|all)$ ]]; then + component_found="true" + log i "----------------------" + log i "Prepearing Xenia" + log i "----------------------" + + rm -rf "/var/data/xenia-canary-pfx" + # TODO: fill this + + 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 0a79370a..c4ff64ef 100644 --- a/net.retrodeck.retrodeck.yml +++ b/net.retrodeck.retrodeck.yml @@ -2,6 +2,8 @@ app-id: net.retrodeck.retrodeck runtime: org.kde.Platform runtime-version: "6.7" sdk: org.kde.Sdk +base: org.winehq.Wine +base-version: stable-23.08 command: retrodeck.sh finish-args: @@ -609,6 +611,23 @@ modules: url: https://github.com/ruffle-rs/ruffle/releases/download/nightly-2024-08-09/ruffle-nightly-2024_08_09-linux-x86_64.tar.gz sha256: d2c4c77d8426da6df8dc8b2a57565c151146464a8eec605d5faa68a297d8cad6 + # XENIA CANARY + - name: xenia-canary + buildsystem: simple + build-commands: + - install -Dm755 xenia-canary.exe "${FLATPAK_DEST}/xenia-canary/xenia-canary.exe" + - install -Dm755 xenia-canary "${FLATPAK_DEST}/bin/xenia-canary" + sources: + - type: archive + url: https://github.com/xenia-canary/xenia-canary/releases/latest/download/experimental/xenia_canary.zip + sha256: XENIACANARYLATESTSHA + - type: script + commands: + - | + #!/bin/bash + WINEPREFIX="/var/data/xenia-canary-pfx" wine "/app/xenia-canary/xenia-canary.exe" + dest-filename: xenia-canary + - name: fetch-missing-libs buildsystem: simple build-commands: