#!/usr/bin/env bash # Build the O3DE Flatpak locally (same bwrap-free path CI uses). # # Requires: flatpak, curl, and the Flathub remote. (No flatpak-builder needed.) # Note: O3DE is large (~15-18 GB installed); expect a multi-GB download and a # build that needs a lot of free disk space. set -euo pipefail cd "$(dirname "$0")/.." eval "$(scripts/get-latest-version.sh)" echo ">> Latest O3DE: ${version} (${deb_file})" if [ ! -f o3de.deb ]; then echo ">> Downloading ${deb_url}" curl -fL --progress-bar -o o3de.deb "${deb_url}" fi if [ -n "${sha256:-}" ]; then echo ">> Verifying checksum" echo "${sha256} o3de.deb" | sha256sum -c - else echo ">> No checksum published; skipping verification" >&2 fi # Make sure the SDK runtime is available (no-op if already installed). flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak install --user -y flathub org.freedesktop.Sdk//24.08 || true echo ">> Building" scripts/make-flatpak.sh cat <> Done. Install from the local repo to test: flatpak remote-add --user --no-gpg-verify o3de-local repo flatpak install --user o3de-local org.o3de.O3DE flatpak run org.o3de.O3DE EOF