From 33d3d89f3b032749305e549f01407963f808aec8 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Tue, 17 Feb 2026 17:41:49 -0500 Subject: [PATCH] feat: add ES-DE installation script with AppImage download Co-Authored-By: Claude Opus 4.6 --- scripts/install-esde.sh | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 scripts/install-esde.sh diff --git a/scripts/install-esde.sh b/scripts/install-esde.sh new file mode 100755 index 0000000..ef6ff8d --- /dev/null +++ b/scripts/install-esde.sh @@ -0,0 +1,44 @@ +#!/bin/bash +# Download and package EmulationStation-DE for aarch64. +set -e + +outdir="${1:-./artifacts}" +esde_dir="$(mktemp -d)" +trap 'rm -rf "$esde_dir"' 0 + +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# Download the latest ES-DE AppImage for aarch64 +esde_url="https://gitlab.com/es-de/emulationstation-de/-/package_files/latest" +# Use the releases page to find the latest aarch64 AppImage +echo "Fetching latest ES-DE release info..." + +# Try to get the latest release from GitLab +# Fallback: use a known stable version +ESDE_VERSION="${ESDE_VERSION:-3.1.1}" +ESDE_APPIMAGE="EmulationStation-DE-x64_SteamDeck-${ESDE_VERSION}.AppImage" +ESDE_URL="https://gitlab.com/es-de/emulationstation-de/-/releases/v${ESDE_VERSION}/downloads/${ESDE_APPIMAGE}" + +# For aarch64, we need the Linux build +# ES-DE provides aarch64 AppImages +ESDE_APPIMAGE_ARM="EmulationStation-DE-aarch64-${ESDE_VERSION}.AppImage" +ESDE_URL_ARM="https://gitlab.com/es-de/emulationstation-de/-/releases/v${ESDE_VERSION}/downloads/${ESDE_APPIMAGE_ARM}" + +mkdir -p "$esde_dir/usr/local/bin" +mkdir -p "$esde_dir/home/emulation/.emulationstation" + +echo "Downloading ES-DE ${ESDE_VERSION} for aarch64..." +if ! wget -q "$ESDE_URL_ARM" -O "$esde_dir/usr/local/bin/EmulationStation-DE.AppImage" 2>/dev/null; then + echo "AppImage download failed. Will need to build from source." + echo "Creating placeholder script..." + cat > "$esde_dir/usr/local/bin/emulationstation" << 'EOF' +#!/bin/bash +echo "ES-DE not installed. Please install manually or rebuild with ESDE_BUILD=source" +sleep 5 +EOF +fi + +chmod +x "$esde_dir/usr/local/bin/"* + +tar cf "$outdir/esde.tar" -C "$esde_dir" . +echo "ES-DE tarball created at $outdir/esde.tar"