diff --git a/archive_later/ags/component_recipe.json b/archive_later/ags/component_recipe.json index af2e6096..e7cd61cb 100755 --- a/archive_later/ags/component_recipe.json +++ b/archive_later/ags/component_recipe.json @@ -40,6 +40,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ] } diff --git a/archive_later/ags/component_update.sh b/archive_later/ags/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/ags/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/ares/component_recipe.json b/archive_later/ares/component_recipe.json index be563476..bd4357b6 100755 --- a/archive_later/ares/component_recipe.json +++ b/archive_later/ares/component_recipe.json @@ -41,6 +41,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/ares/component_update.sh b/archive_later/ares/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/ares/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/delta-patcher/component_recipe.json b/archive_later/delta-patcher/component_recipe.json index acfee138..984ef875 100755 --- a/archive_later/delta-patcher/component_recipe.json +++ b/archive_later/delta-patcher/component_recipe.json @@ -41,6 +41,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/delta-patcher/component_update.sh b/archive_later/delta-patcher/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/delta-patcher/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/dosbox-x/component_recipe.json b/archive_later/dosbox-x/component_recipe.json index eb0dc462..1a6dabe1 100755 --- a/archive_later/dosbox-x/component_recipe.json +++ b/archive_later/dosbox-x/component_recipe.json @@ -51,6 +51,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/dosbox-x/component_update.sh b/archive_later/dosbox-x/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/dosbox-x/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/eden/component_recipe.json b/archive_later/eden/component_recipe.json index a678291f..1ea8e69d 100755 --- a/archive_later/eden/component_recipe.json +++ b/archive_later/eden/component_recipe.json @@ -60,6 +60,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/eden/component_update.sh b/archive_later/eden/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/eden/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/eka2l1/component_recipe.json b/archive_later/eka2l1/component_recipe.json index 979dc3ca..54fcb606 100755 --- a/archive_later/eka2l1/component_recipe.json +++ b/archive_later/eka2l1/component_recipe.json @@ -45,6 +45,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/eka2l1/component_update.sh b/archive_later/eka2l1/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/eka2l1/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/flycast/component_recipe.json b/archive_later/flycast/component_recipe.json index d00711b0..0b19f48f 100755 --- a/archive_later/flycast/component_recipe.json +++ b/archive_later/flycast/component_recipe.json @@ -46,6 +46,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/flycast/component_update.sh b/archive_later/flycast/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/flycast/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/gargoyle/component_recipe.json b/archive_later/gargoyle/component_recipe.json index e27ed678..0bd54e3d 100755 --- a/archive_later/gargoyle/component_recipe.json +++ b/archive_later/gargoyle/component_recipe.json @@ -56,6 +56,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/gargoyle/component_update.sh b/archive_later/gargoyle/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/gargoyle/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/hypseus/component_recipe.json b/archive_later/hypseus/component_recipe.json index d7005cb4..ab20bede 100755 --- a/archive_later/hypseus/component_recipe.json +++ b/archive_later/hypseus/component_recipe.json @@ -40,6 +40,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ] }, diff --git a/archive_later/hypseus/component_update.sh b/archive_later/hypseus/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/hypseus/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/ikemen-go/component_functions.sh b/archive_later/ikemen-go/component_functions.sh new file mode 100755 index 00000000..cc1f786e --- /dev/null +++ b/archive_later/ikemen-go/component_functions.sh @@ -0,0 +1 @@ +#!/bin/bash \ No newline at end of file diff --git a/archive_later/ikemen-go/component_launcher.sh b/archive_later/ikemen-go/component_launcher.sh new file mode 100755 index 00000000..819312e4 --- /dev/null +++ b/archive_later/ikemen-go/component_launcher.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Setting component name and path based on the directory name +component_name="$(basename "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")" +component_path="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" + +# Set LD_LIBRARY_PATH +export LD_LIBRARY_PATH="$component_path/lib:$ffmpeg_path/25.08:$rd_shared_libs:${DEFAULT_LD_LIBRARY_PATH}" +export QT_PLUGIN_PATH="${QT_PLUGIN_PATH}" +export QT_QPA_PLATFORM_PLUGIN_PATH="${QT_QPA_PLATFORM_PLUGIN_PATH}" + +log i "RetroDECK is now launching $component_name" +log d "Library path is: $LD_LIBRARY_PATH" +log d "QT plugin path is: $QT_PLUGIN_PATH" +log d "QT QPA PLATFORM plugin path is: $QT_QPA_PLATFORM_PLUGIN_PATH" + +# Launch +exec "$component_path/bin/ikeman-go" "$@" diff --git a/archive_later/ikemen-go/component_recipe.json b/archive_later/ikemen-go/component_recipe.json index ef93d033..c0226a5f 100755 --- a/archive_later/ikemen-go/component_recipe.json +++ b/archive_later/ikemen-go/component_recipe.json @@ -40,6 +40,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/ikemen-go/component_update.sh b/archive_later/ikemen-go/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/ikemen-go/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/kegs/component_recipe.json b/archive_later/kegs/component_recipe.json index 1be9b069..5c95a1f3 100755 --- a/archive_later/kegs/component_recipe.json +++ b/archive_later/kegs/component_recipe.json @@ -45,6 +45,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/kegs/component_update.sh b/archive_later/kegs/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/kegs/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/lindbergh/component_recipe.json b/archive_later/lindbergh/component_recipe.json index 4b11bcc2..e252b00a 100755 --- a/archive_later/lindbergh/component_recipe.json +++ b/archive_later/lindbergh/component_recipe.json @@ -45,6 +45,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/lindbergh/component_update.sh b/archive_later/lindbergh/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/lindbergh/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/ludusavi/component_functions.sh b/archive_later/ludusavi/component_functions.sh new file mode 100755 index 00000000..cc1f786e --- /dev/null +++ b/archive_later/ludusavi/component_functions.sh @@ -0,0 +1 @@ +#!/bin/bash \ No newline at end of file diff --git a/archive_later/ludusavi/component_launcher.sh b/archive_later/ludusavi/component_launcher.sh new file mode 100755 index 00000000..0c4eda6a --- /dev/null +++ b/archive_later/ludusavi/component_launcher.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Setting component name and path based on the directory name +component_name="$(basename "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")" +component_path="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" + +# Set LD_LIBRARY_PATH +export LD_LIBRARY_PATH="$component_path/lib:$ffmpeg_path/25.08:$rd_shared_libs:${DEFAULT_LD_LIBRARY_PATH}" +export QT_PLUGIN_PATH="${QT_PLUGIN_PATH}" +export QT_QPA_PLATFORM_PLUGIN_PATH="${QT_QPA_PLATFORM_PLUGIN_PATH}" + +log i "RetroDECK is now launching $component_name" +log d "Library path is: $LD_LIBRARY_PATH" +log d "QT plugin path is: $QT_PLUGIN_PATH" +log d "QT QPA PLATFORM plugin path is: $QT_QPA_PLATFORM_PLUGIN_PATH" + +# Launch +exec "$component_path/bin/ludusavi" "$@" diff --git a/archive_later/ludusavi/component_manifest.json b/archive_later/ludusavi/component_manifest.json new file mode 100644 index 00000000..2f9563f5 --- /dev/null +++ b/archive_later/ludusavi/component_manifest.json @@ -0,0 +1,11 @@ +{ + "ludusavi": { + "name": "Ludusavi", + "description": "Ludusavi is a system for backing up your video game data.", + "url_rdwiki": "https://retrodeck.readthedocs.io/en/latest/wiki_system_guides/ludusavi/ludusavi-guide/", + "url_source": "https://flathub.org/en/apps/com.github.mtkennerly.ludusavi", + "component_type": "System", + "system_friendly_name": "Ludusavi", + "system": "ludusavi" + } +} \ No newline at end of file diff --git a/archive_later/ludusavi/component_prepare.sh b/archive_later/ludusavi/component_prepare.sh new file mode 100755 index 00000000..7d6a87c7 --- /dev/null +++ b/archive_later/ludusavi/component_prepare.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Setting component name and path based on the directory name +component_name="$(basename "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")" +component_config="/app/retrodeck/components/$component_name/rd_config" + +if [[ "$action" == "reset" ]]; then # Run reset-only commands + + log i "----------------------" + log i "Preparing $component_name" + log i "----------------------" diff --git a/archive_later/ludusavi/component_recipe.json b/archive_later/ludusavi/component_recipe.json index e89d15b5..35128302 100644 --- a/archive_later/ludusavi/component_recipe.json +++ b/archive_later/ludusavi/component_recipe.json @@ -9,8 +9,48 @@ "assets": [ { "type": "dir", - "source": "bin", + "source": "usr/bin", "dest": "bin" + }, + { + "type": "create", + "dest": "component_version", + "contents": "$SOURCE_VERSION" + }, + { + "type": "dir", + "source": "$REPO_ROOT/$COMPONENT_NAME/rd_config", + "dest": "rd_config" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_functions.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_launcher.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_manifest.json", + "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_recipe.json", + "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/ludusavi/component_update.sh b/archive_later/ludusavi/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/ludusavi/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/moonlight/component_recipe.json b/archive_later/moonlight/component_recipe.json index 5d9b169b..861fbad8 100755 --- a/archive_later/moonlight/component_recipe.json +++ b/archive_later/moonlight/component_recipe.json @@ -42,6 +42,11 @@ "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" + } { "type": "dir", "source": "lib/libdecor", diff --git a/archive_later/moonlight/component_update.sh b/archive_later/moonlight/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/moonlight/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/mudlet/component_recipe.json b/archive_later/mudlet/component_recipe.json index bf345fd1..928ca8ac 100755 --- a/archive_later/mudlet/component_recipe.json +++ b/archive_later/mudlet/component_recipe.json @@ -70,6 +70,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/prism-launcher/component_recipe.json b/archive_later/prism-launcher/component_recipe.json index 3fff3ac5..22600571 100755 --- a/archive_later/prism-launcher/component_recipe.json +++ b/archive_later/prism-launcher/component_recipe.json @@ -61,6 +61,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/prism-launcher/component_update.sh b/archive_later/prism-launcher/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/prism-launcher/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/raze/component_functions.sh b/archive_later/raze/component_functions.sh new file mode 100755 index 00000000..cc1f786e --- /dev/null +++ b/archive_later/raze/component_functions.sh @@ -0,0 +1 @@ +#!/bin/bash \ No newline at end of file diff --git a/archive_later/raze/component_recipe.json b/archive_later/raze/component_recipe.json index 47f2e5df..4a55354f 100755 --- a/archive_later/raze/component_recipe.json +++ b/archive_later/raze/component_recipe.json @@ -56,6 +56,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/raze/component_update.sh b/archive_later/raze/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/raze/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/scummvm/component_recipe.json b/archive_later/scummvm/component_recipe.json index fd53b9fa..a6b38078 100755 --- a/archive_later/scummvm/component_recipe.json +++ b/archive_later/scummvm/component_recipe.json @@ -66,6 +66,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/scummvm/component_update.sh b/archive_later/scummvm/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/scummvm/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/shadps4/component_recipe.json b/archive_later/shadps4/component_recipe.json index 102419ba..be629fc8 100755 --- a/archive_later/shadps4/component_recipe.json +++ b/archive_later/shadps4/component_recipe.json @@ -46,6 +46,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/shadps4/component_update.sh b/archive_later/shadps4/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/shadps4/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/simcoupe/component_recipe.json b/archive_later/simcoupe/component_recipe.json index 4f844c14..8fcb5218 100755 --- a/archive_later/simcoupe/component_recipe.json +++ b/archive_later/simcoupe/component_recipe.json @@ -50,6 +50,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/simcoupe/component_update.sh b/archive_later/simcoupe/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/simcoupe/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/supermodel/component_prepare.sh b/archive_later/supermodel/component_prepare.sh new file mode 100755 index 00000000..39ae4202 --- /dev/null +++ b/archive_later/supermodel/component_prepare.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Setting component name and path based on the directory name +component_name="$(basename "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")" +component_config="/app/retrodeck/components/$component_name/rd_config" + +if [[ "$action" == "reset" ]]; then # Run reset-only commands + log i "----------------------" + log i "Preparing $component_name" + log i "----------------------" + +fi diff --git a/archive_later/supermodel/component_recipe.json b/archive_later/supermodel/component_recipe.json index fc08cd3d..ac152a88 100755 --- a/archive_later/supermodel/component_recipe.json +++ b/archive_later/supermodel/component_recipe.json @@ -41,6 +41,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/supermodel/component_update.sh b/archive_later/supermodel/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/supermodel/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/uzdoom/component_update.sh b/archive_later/uzdoom/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/uzdoom/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/vcmi/component_recipe.json b/archive_later/vcmi/component_recipe.json index 67ee3d86..157de787 100755 --- a/archive_later/vcmi/component_recipe.json +++ b/archive_later/vcmi/component_recipe.json @@ -66,6 +66,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/archive_later/vcmi/component_update.sh b/archive_later/vcmi/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/vcmi/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/vpinballx/component_recipe.json b/archive_later/vpinballx/component_recipe.json index eb52dabe..124fa435 100755 --- a/archive_later/vpinballx/component_recipe.json +++ b/archive_later/vpinballx/component_recipe.json @@ -40,6 +40,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ] }, diff --git a/archive_later/vpinballx/component_update.sh b/archive_later/vpinballx/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/vpinballx/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/archive_later/xenia/component_recipe.json b/archive_later/xenia/component_recipe.json index 93bd5b84..15d1093c 100755 --- a/archive_later/xenia/component_recipe.json +++ b/archive_later/xenia/component_recipe.json @@ -60,6 +60,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/archive_later/xenia/component_update.sh b/archive_later/xenia/component_update.sh new file mode 100644 index 00000000..4d6377ea --- /dev/null +++ b/archive_later/xenia/component_update.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +######################################################################### +# These actions happen conditionally based on the version being upgraded +######################################################################### + diff --git a/azahar/component_recipe.json b/azahar/component_recipe.json index 97607885..50522bab 100755 --- a/azahar/component_recipe.json +++ b/azahar/component_recipe.json @@ -51,6 +51,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/flips/component_recipe.json b/flips/component_recipe.json index 6127732b..05ae8b9e 100755 --- a/flips/component_recipe.json +++ b/flips/component_recipe.json @@ -45,6 +45,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [] diff --git a/openbor/component_recipe.json b/openbor/component_recipe.json index 6bc409e0..034c073d 100755 --- a/openbor/component_recipe.json +++ b/openbor/component_recipe.json @@ -40,6 +40,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": [ diff --git a/xroar/component_recipe.json b/xroar/component_recipe.json index 659d2a53..b75b5151 100755 --- a/xroar/component_recipe.json +++ b/xroar/component_recipe.json @@ -50,6 +50,11 @@ "type": "file", "source": "$REPO_ROOT/$COMPONENT_NAME/component_prepare.sh", "dest": "$COMPONENT_ARTIFACT_ROOT" + }, + { + "type": "file", + "source": "$REPO_ROOT/$COMPONENT_NAME/component_update.sh", + "dest": "$COMPONENT_ARTIFACT_ROOT" } ], "libs": []