POST_BUILD_CHECK: running the commands inside the flatpak

This commit is contained in:
XargonWan 2024-12-10 10:27:40 +09:00
parent a2cf8351c9
commit 06034ee7fc

View file

@ -9,14 +9,14 @@ LOG_FILE="$HOME/check.log"
> "$LOG_FILE" > "$LOG_FILE"
# Extract launch commands using jq # Extract launch commands using jq
commands=($(jq -r '.emulator | to_entries[] | .value.launch' /app/retrodeck/config/retrodeck/reference_lists//features.json)) commands=($(jq -r '.emulator | to_entries[] | .value.launch' /app/retrodeck/config/retrodeck/reference_lists/features.json))
# Timeout duration in seconds # Timeout duration in seconds
TIMEOUT=5 TIMEOUT=5
# Function to run command with timeout # Function to run command with timeout
run_and_check() { run_and_check() {
local cmd="$1" local cmd="flatpak run net.retrodeck.retrodeck $1"
# Verify command exists # Verify command exists
if ! command -v "$cmd" &> /dev/null; then if ! command -v "$cmd" &> /dev/null; then