From eaeaef514615a85b0a8c2cc7671c46ebfbbb8d54 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 17 Aug 2026 22:01:21 +0000 Subject: [PATCH 1/2] build_runtime: add --install-deps-from=flathub So that the various fredesktop things are downloaded automatically when needed. --- flatpaker/actions/build_runtime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flatpaker/actions/build_runtime.py b/flatpaker/actions/build_runtime.py index cd6e520..33acc58 100644 --- a/flatpaker/actions/build_runtime.py +++ b/flatpaker/actions/build_runtime.py @@ -17,7 +17,8 @@ def _build_runtime(args: BaseBuildArguments, sdk: pathlib.Path, need_platform_workaround: bool) -> None: build_command: list[str] = [ - 'flatpak-builder', '--force-clean', '--user', 'build', sdk.as_posix()] + 'flatpak-builder', '--force-clean', '--user', + '--install-deps-from=flathub', 'build', sdk.as_posix()] if args.export: build_command.extend(['--repo', args.repo]) From 3a45f5f8a76d6ba4d834fda6f8a218fbdc7ef08f Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 17 Aug 2026 21:36:00 +0000 Subject: [PATCH 2/2] runtime: Add the freedesktop VAAPI extension Fixes: #38 --- ...github.dcbaker.flatpaker.RPGM.Platform.yml | 35 ++++++++++--------- ...thub.dcbaker.flatpaker.RenPy.7.py2.Sdk.yml | 1 + ...thub.dcbaker.flatpaker.RenPy.7.py3.Sdk.yml | 1 + ...m.github.dcbaker.flatpaker.RenPy.8.Sdk.yml | 1 + 4 files changed, 21 insertions(+), 17 deletions(-) diff --git a/flatpaker/data/com.github.dcbaker.flatpaker.RPGM.Platform.yml b/flatpaker/data/com.github.dcbaker.flatpaker.RPGM.Platform.yml index 4b2f96d..4984618 100644 --- a/flatpaker/data/com.github.dcbaker.flatpaker.RPGM.Platform.yml +++ b/flatpaker/data/com.github.dcbaker.flatpaker.RPGM.Platform.yml @@ -4,21 +4,22 @@ runtime-version: "24.08" runtime: org.freedesktop.Platform sdk: org.freedesktop.Sdk inherit-extensions: - - "org.freedesktop.Platform.GL" + - "org.freedesktop.Platform.GL" + - "org.freedesktop.Platform.VAAPI.Intel" modules: - - name: "nwjs" - buildsystem: "simple" - sources: - - type: "archive" - url: "https://dl.nwjs.io/v0.114.1/nwjs-v0.114.1-linux-x64.tar.gz" - sha256: "35e53de9b37edf8a0cd77068d74728bcd470ae6569f88a4a15b97d27647635db" - only_arches: - - x86_64 - - type: "archive" - url: "https://dl.nwjs.io/v0.114.1/nwjs-v0.114.1-linux-arm64.tar.gz" - sha256: "40befc36553e189151a3d89481da2aa02b1d250df447f57020e142e1953090ff" - only_arches: - - aarch64 - build-commands: - - "mkdir /usr/lib/nwjs" - - "mv * /usr/lib/nwjs/" + - name: "nwjs" + buildsystem: "simple" + sources: + - type: "archive" + url: "https://dl.nwjs.io/v0.114.1/nwjs-v0.114.1-linux-x64.tar.gz" + sha256: "35e53de9b37edf8a0cd77068d74728bcd470ae6569f88a4a15b97d27647635db" + only_arches: + - x86_64 + - type: "archive" + url: "https://dl.nwjs.io/v0.114.1/nwjs-v0.114.1-linux-arm64.tar.gz" + sha256: "40befc36553e189151a3d89481da2aa02b1d250df447f57020e142e1953090ff" + only_arches: + - aarch64 + build-commands: + - "mkdir /usr/lib/nwjs" + - "mv * /usr/lib/nwjs/" diff --git a/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py2.Sdk.yml b/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py2.Sdk.yml index f8005fd..32a277f 100644 --- a/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py2.Sdk.yml +++ b/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py2.Sdk.yml @@ -7,6 +7,7 @@ runtime: org.freedesktop.Platform sdk: org.freedesktop.Sdk inherit-extensions: - "org.freedesktop.Platform.GL" + - "org.freedesktop.Platform.VAAPI.Intel" modules: - "modules/renpy-shared.yml" - "modules/python-2.7.json" diff --git a/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py3.Sdk.yml b/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py3.Sdk.yml index 9ffcf35..31c6cbd 100644 --- a/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py3.Sdk.yml +++ b/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.7.py3.Sdk.yml @@ -7,6 +7,7 @@ runtime: org.freedesktop.Platform sdk: org.freedesktop.Sdk inherit-extensions: - "org.freedesktop.Platform.GL" + - "org.freedesktop.Platform.VAAPI.Intel" modules: - "modules/renpy-shared.yml" - "modules/python3-requirements.json" diff --git a/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.8.Sdk.yml b/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.8.Sdk.yml index bde4a33..30a163c 100644 --- a/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.8.Sdk.yml +++ b/flatpaker/data/com.github.dcbaker.flatpaker.RenPy.8.Sdk.yml @@ -7,6 +7,7 @@ runtime: org.freedesktop.Platform sdk: org.freedesktop.Sdk inherit-extensions: - "org.freedesktop.Platform.GL" + - "org.freedesktop.Platform.VAAPI.Intel" modules: - "modules/renpy-shared.yml" - "modules/python3-requirements.json"