Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ jobs:
env:
FLATPAK_BUILD_SHARE_PATH: flatpak_app/files/share
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
options: --privileged
volumes:
- /usr/local/lib/android:/to_clean/android
Expand Down Expand Up @@ -312,7 +312,7 @@ jobs:

git config --global --add safe.directory "${GITHUB_WORKSPACE}"

cache_key='flatpak-builder-${{ hashFiles('build-aux/**/*.json') }}'
cache_key='flatpak-builder-${{ hashFiles('build-aux/com.obsproject.Studio.json') }}'
cache_ref='master'
read -r id key size unit created accessed <<< \
"$(gh cache list --ref "refs/heads/${cache_ref}" --key "${cache_key}-x86_64" | head -1)"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
YOUTUBE_SECRET: ${{ secrets.YOUTUBE_SECRET }}
YOUTUBE_SECRET_HASH: ${{ secrets.YOUTUBE_SECRET_HASH }}
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08
options: --privileged
volumes:
- /usr/local/lib/android:/to_clean/android
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:

git config --global --add safe.directory "${GITHUB_WORKSPACE}"

cache_key='flatpak-builder-${{ hashFiles('build-aux/**/*.json') }}'
cache_key='flatpak-builder-${{ hashFiles('build-aux/com.obsproject.Studio.json') }}'
cache_ref='master'
read -r id key size unit created accessed <<< \
"$(gh cache list --ref "refs/heads/${cache_ref}" --key "${cache_key}-x86_64" | head -1)"
Expand Down
21 changes: 0 additions & 21 deletions build-aux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,3 @@ Example of use:
```sh
python3 ./build-aux/format-manifest.py com.obsproject.Studio.json
```

## OBS Studio Flatpak Manifest

The manifest is composed of multiple files:
- The main manifest `com.obsproject.Studio.json`
- The `modules` folder which contains OBS Studio dependencies modules

### Manifest modules

Modules are ordered/dispatched in numbered categories following a short list of rules:
- A module must not depend on another module from the same category, so a module can only depend on modules from lower numbered categories.
- A module without dependencies must be placed in the highest numbered category in use, excluding categories meant for specific types of dependency.

Actual categories:
- `99-`: CEF
- `90-`: Headers-only libraries that are dependencies of only OBS Studio
- `50-`: Modules that are dependencies of only OBS Studio
- `40-`: Modules that are dependencies of the `50-` category
- `30-`: FFmpeg
- `20-`: Modules that are dependencies of FFmpeg
- `10-`: Modules that are dependencies of the `20-` category
123 changes: 90 additions & 33 deletions build-aux/com.obsproject.Studio.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "com.obsproject.Studio",
"runtime": "org.kde.Platform",
"runtime-version": "6.8",
"sdk": "org.kde.Sdk",
"runtime": "org.freedesktop.Platform",
"runtime-version": "24.08",
"sdk": "org.freedesktop.Sdk",
"command": "obs",
"finish-args": [
"--socket=wayland",
Expand Down Expand Up @@ -37,37 +37,94 @@
"no-autodownload": true
}
},
"cleanup": [
"/share/man",
"*.la"
],
"modules": [
"modules/10-mbedtls.json",
"modules/20-librist.json",
"modules/20-nv-codec.json",
"modules/20-srt.json",
"modules/20-svt-av1.json",
"modules/20-x264.json",
"modules/30-ffmpeg.json",
"modules/40-luajit.json",
"modules/40-plog.json",
"modules/40-usrsctp.json",
"modules/50-intel-media-sdk.json",
"modules/50-jansson.json",
"modules/50-libdatachannel.json",
"modules/50-libqrcodegencpp.json",
"modules/50-libvpl.json",
"modules/50-ntv2.json",
"modules/50-rnnoise.json",
"modules/50-swig.json",
"modules/50-v4l-utils.json",
"modules/50-vpl-gpu-rt.json",
"modules/90-asio.json",
"modules/90-nlohmann-json.json",
"modules/90-simde.json",
"modules/90-uthash.json",
"modules/90-websocketpp.json",
"modules/99-cef.json",
{
"name": "obs-deps-base",
"buildsystem": "simple",
"build-commands": [
"tar -xvf base.tar.xz -C /"
],
"sources": [
{
"type": "file",
"dest-filename": "base.tar.xz",
"url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2025-10-03/flatpak-base-x86_64-2025-10-03.tar.xz",
"sha256": "5bb40382cf587c0f20f6bead0f93f41ab0ea252a49f3d3ea73e8d554eb44ef6d"
}
]
},
{
"name": "obs-deps-devel",
"buildsystem": "simple",
"build-commands": [
"tar -xvf devel.tar.xz -C /"
],
"sources": [
{
"type": "file",
"dest-filename": "devel.tar.xz",
"url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2025-10-03/flatpak-devel-x86_64-2025-10-03.tar.xz",
"sha256": "69dbbb2f0097503b5c4acd9ee5834f44fc6276e9d3b4ab70526f0ef0292a9797"
}
]
},
{
"name": "obs-deps-devtools",
"buildsystem": "simple",
"build-commands": [
"tar -xvf devtools.tar.xz -C /"
],
"cleanup": [
"*"
],
"sources": [
{
"type": "file",
"dest-filename": "devtools.tar.xz",
"url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2025-10-03/flatpak-devtools-x86_64-2025-10-03.tar.xz",
"sha256": "db1e9b7804c3f9f08b3a4321166abfb53462c9f6e6d6ca5a26eb36b8cfa23df3"
}
]
},
{
"name": "qt",
"buildsystem": "simple",
"build-commands": [
"tar -xvf qt.tar.xz -C /"
],
"sources": [
{
"type": "file",
"dest-filename": "qt.tar.xz",
"url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2025-10-03/flatpak-qt-x86_64-2025-10-03.tar.xz",
"sha256": "79d7377da42e1eea2a18ed76407c1db716a80778fe34ef1f68b9eb7ca6d89cbf"
}
]
},
{
"name": "cef",
"build-options": {
"no-debuginfo": true
},
"buildsystem": "simple",
"build-commands": [
"mkdir -p /app/cef/libcef_dll_wrapper",
"cp -R ./include /app/cef",
"cp -R ./Release /app/cef",
"cp -R ./Resources /app/cef",
"cp -R ./build/libcef_dll_wrapper/libcef_dll_wrapper.a /app/cef/libcef_dll_wrapper"
],
"cleanup": [
"*"
],
"sources": [
{
"type": "archive",
"url": "https://cdn-fastly.obsproject.com/downloads/cef_binary_6533_linux_x86_64_v6.tar.xz",
"sha256": "7963335519a19ccdc5233f7334c5ab023026e2f3e9a0cc417007c09d86608146"
}
]
},
{
"name": "obs",
"buildsystem": "cmake-ninja",
Expand Down
31 changes: 1 addition & 30 deletions build-aux/format-manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,41 +39,12 @@ def main() -> int:
manifest_string = manifest.read()
manifest_data = json.loads(manifest_string)

module_list = manifest_data.get("modules", [])

obs_object = module_list[-1]

if type(obs_object) != dict:
logger.error(
f"❌ Last element in modules list is not the obs-studio object"
)
return 2

new_module_list = []

for module in module_list:
if type(module) == str:
if not os.path.isfile(os.path.join(manifest_path, module)):
logger.warning(
f"⚠️ Specified module {os.path.basename(module)} not found."
)
continue

new_module_list.append(module)

new_module_list.sort()
new_module_list.append(obs_object)
manifest_data["modules"] = new_module_list

new_manifest_string = (
f"{json.dumps(manifest_data, indent=4, ensure_ascii=False)}\n"
)

if arguments.check:
if new_module_list != module_list:
logger.error(f"❌ Module list failed order validation")
return 2
elif new_manifest_string != manifest_string:
if new_manifest_string != manifest_string:
logger.error(f"❌ Manifest file is not correctly formatted")
return 2
else:
Expand Down
24 changes: 0 additions & 24 deletions build-aux/modules/10-mbedtls.json

This file was deleted.

25 changes: 0 additions & 25 deletions build-aux/modules/20-aom.json.disabled

This file was deleted.

22 changes: 0 additions & 22 deletions build-aux/modules/20-librist.json

This file was deleted.

18 changes: 0 additions & 18 deletions build-aux/modules/20-nv-codec.json

This file was deleted.

23 changes: 0 additions & 23 deletions build-aux/modules/20-srt.json

This file was deleted.

25 changes: 0 additions & 25 deletions build-aux/modules/20-svt-av1.json

This file was deleted.

Loading