#!/bin/sh # Installs Shogo: Mobile Armor Division (Linux Demo) Flatpak on a new machine. # Configures Flathub, installs runtime + extensions (32-bit libs, GL, gamescope) # and finally the game. Usage: ./install-shogo-demo.sh [path-to-bundle.flatpak] set -e BUNDLE="${1:-$(dirname "$0")/shogo-demo.flatpak}" echo "==> Checking flatpak..." if ! command -v flatpak >/dev/null 2>&1; then echo "flatpak not found. Install it first (e.g. Debian/Ubuntu: sudo apt install flatpak)" exit 1 fi echo "==> Configuring Flathub (if missing)..." flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo echo "==> Installing runtime and extensions (32-bit libs, GL, gamescope)..." flatpak install --user -y flathub \ org.freedesktop.Platform//25.08 \ org.freedesktop.Platform.Compat.i386//25.08 \ org.freedesktop.Platform.GL32.default//25.08 \ org.freedesktop.Platform.VulkanLayer.gamescope//25.08 echo "==> Installing the game (bundle)..." flatpak install --user -y "$BUNDLE" echo "" echo "===================================================" echo "Done! Launch with: flatpak run io.github.enne2.ShogoDemo" echo "(or from the app menu: 'Shogo: Mobile Armor Division (Demo)')" echo "==================================================="