#!/bin/bash echo "Fetching 86Box AppImage and ROMs..." mkdir -p /opt/86box/roms if [ "$(uname -m)" == "aarch64" ]; then echo "Fetching 86Box AppImage for ARM64 architecture..." wget -O /opt/86box/86box \ https://github.com/86Box/86Box/releases/download/v5.3/86Box-NDR-Linux-arm64-b8200.AppImage elif [ "$(uname -m)" == "x86_64" ]; then echo "Fetching 86Box AppImage for x86_64 architecture..." wget -O /opt/86box/86box \ https://github.com/86Box/86Box/releases/download/v5.3/86Box-Linux-x86_64-b8200.AppImage fi chmod +x /opt/86box/86box wget -O /tmp/roms.tar.gz \ https://github.com/86Box/roms/archive/refs/tags/v5.3.tar.gz tar -xzf /tmp/roms.tar.gz -C /opt/86box/roms --strip-components=1