Initial upload

This commit is contained in:
2026-05-29 00:00:13 +02:00
commit 44310b57b3
2 changed files with 49 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# O3DE Flatpak Wrapper Script
# Bibliotheken aus dem Flatpak-Bundle zum LD_LIBRARY_PATH hinzufügen
export LD_LIBRARY_PATH="/app/opt/O3DE/lib:/app/lib:$LD_LIBRARY_PATH"
# Finde das Haupt-Executable von O3DE. Meist ist es in /app/opt/O3DE/bin/Linux/profile/Default/o3de oder ähnlich.
O3DE_BIN=$(find /app/opt -type f -executable -name "o3de" | head -n 1)
if [ -z "$O3DE_BIN" ]; then
echo "Fehler: O3DE Executable wurde im Paket nicht gefunden!"
exit 1
fi
echo "Starte O3DE: $O3DE_BIN"
exec "$O3DE_BIN" "$@"
+33
View File
@@ -0,0 +1,33 @@
app-id: org.o3de.O3DE
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: o3de-wrapper.sh
finish-args:
- --share=network
- --share=ipc
- --socket=x11
- --socket=wayland
- --device=dri
- --filesystem=host
modules:
- name: o3de
buildsystem: simple
build-commands:
# Die .deb Datei entpacken (enthält meist control.tar.* und data.tar.*)
- ar x o3de.deb
# Den eigentlichen Inhalt entpacken
- tar xf data.tar.*
# Die Dateien nach /app/opt verschieben (da .deb typischerweise in /opt oder /usr installiert)
- mkdir -p /app/opt
- mv opt/* /app/opt/ || true
- mv usr/* /app/ || true
# Wrapper Skript installieren
- install -D -m 755 o3de-wrapper.sh /app/bin/o3de-wrapper.sh
sources:
- type: file
url: URL_PLACEHOLDER
sha256: SHA256_PLACEHOLDER
dest-filename: o3de.deb
- type: file
path: o3de-wrapper.sh