CI: build without flatpak-builder to avoid bwrap/privileged requirement

flatpak-builder sandboxes each build command in bubblewrap, which needs
user namespaces / a privileged job container that Gitea act_runner does
not grant by default (bwrap: Creating new namespace failed).

Replace it with scripts/make-flatpak.sh, which uses flatpak
build-init/build-finish/build-export plus plain-shell extraction and the
get_python.sh bake. None of these use bwrap, so an unprivileged container
works. The flatpak-builder manifest stays as a documented alternative.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 10:04:32 +02:00
parent ff03166642
commit 5ae57f3bbf
4 changed files with 90 additions and 27 deletions
+7 -10
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Build the O3DE Flatpak locally (for testing the manifest before relying on CI).
# Build the O3DE Flatpak locally (same bwrap-free path CI uses).
#
# Requires: flatpak, flatpak-builder, curl, and the Flathub remote.
# 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
@@ -22,20 +22,17 @@ else
echo ">> No checksum published; skipping verification" >&2
fi
# Make sure the runtime/SDK are available (no-op if already installed).
# 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.Platform//24.08 org.freedesktop.Sdk//24.08 || true
flatpak install --user -y flathub org.freedesktop.Sdk//24.08 || true
echo ">> Building"
flatpak-builder --user --force-clean --install-deps-from=flathub \
--repo=repo build-dir org.o3de.O3DE.yaml
scripts/make-flatpak.sh
cat <<EOF
>> Done.
Test run without installing:
flatpak-builder --run build-dir org.o3de.O3DE.yaml o3de-wrapper.sh
Or install from the local repo:
>> 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