com.obsproject.Studio.json 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. {
  2. "id": "com.obsproject.Studio",
  3. "runtime": "org.freedesktop.Platform",
  4. "runtime-version": "25.08",
  5. "sdk": "org.freedesktop.Sdk",
  6. "command": "obs",
  7. "finish-args": [
  8. "--socket=wayland",
  9. "--socket=fallback-x11",
  10. "--socket=pulseaudio",
  11. "--device=all",
  12. "--share=network",
  13. "--share=ipc",
  14. "--filesystem=xdg-run/pipewire-0",
  15. "--filesystem=host",
  16. "--talk-name=org.kde.StatusNotifierWatcher",
  17. "--talk-name=org.freedesktop.Flatpak",
  18. "--talk-name=org.freedesktop.Notifications",
  19. "--talk-name=org.a11y.Bus",
  20. "--env=VST_PATH=/app/extensions/Plugins/vst"
  21. ],
  22. "add-extensions": {
  23. "com.obsproject.Studio.Plugin": {
  24. "directory": "plugins",
  25. "subdirectories": true,
  26. "add-ld-path": "lib",
  27. "merge-dirs": "lib/obs-plugins;share/obs/obs-plugins",
  28. "no-autodownload": true,
  29. "autodelete": true
  30. },
  31. "org.freedesktop.LinuxAudio.Plugins": {
  32. "directory": "extensions/Plugins",
  33. "version": "25.08",
  34. "add-ld-path": "lib",
  35. "merge-dirs": "vst",
  36. "subdirectories": true,
  37. "no-autodownload": true
  38. }
  39. },
  40. "modules": [
  41. {
  42. "name": "obs-deps-base",
  43. "buildsystem": "simple",
  44. "build-commands": [
  45. "tar -xvf base.tar.xz -C /"
  46. ],
  47. "sources": [
  48. {
  49. "type": "file",
  50. "dest-filename": "base.tar.xz",
  51. "url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2026-01-09/flatpak-base-x86_64-2026-01-09.tar.xz",
  52. "sha256": "664ff7c2e3cfa552a6b16e7b78428c1940a5a42f85911b5e4d57a053f0dcc9e1"
  53. }
  54. ]
  55. },
  56. {
  57. "name": "obs-deps-devel",
  58. "buildsystem": "simple",
  59. "build-commands": [
  60. "tar -xvf devel.tar.xz -C /"
  61. ],
  62. "sources": [
  63. {
  64. "type": "file",
  65. "dest-filename": "devel.tar.xz",
  66. "url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2026-01-09/flatpak-devel-x86_64-2026-01-09.tar.xz",
  67. "sha256": "214a18feff6d7e1ed5b42820ac806eafec50029e41f03c197f76e06eafb591dc"
  68. }
  69. ]
  70. },
  71. {
  72. "name": "obs-deps-devtools",
  73. "buildsystem": "simple",
  74. "build-commands": [
  75. "tar -xvf devtools.tar.xz -C /"
  76. ],
  77. "cleanup": [
  78. "*"
  79. ],
  80. "sources": [
  81. {
  82. "type": "file",
  83. "dest-filename": "devtools.tar.xz",
  84. "url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2026-01-09/flatpak-devtools-x86_64-2026-01-09.tar.xz",
  85. "sha256": "f3381b9661925a593ebe42dded1a87f86d54e49c7fde92567f2f19d37564bb61"
  86. }
  87. ]
  88. },
  89. {
  90. "name": "qt",
  91. "buildsystem": "simple",
  92. "build-commands": [
  93. "tar -xvf qt.tar.xz -C /"
  94. ],
  95. "sources": [
  96. {
  97. "type": "file",
  98. "dest-filename": "qt.tar.xz",
  99. "url": "https://github.com/obsproject/obs-deps-buildstream/releases/download/2026-01-09/flatpak-qt-x86_64-2026-01-09.tar.xz",
  100. "sha256": "57c5c90cd5824d2a634ba92a0a2ad1b1a57347ee14a9eae41cf77c74970cee11"
  101. }
  102. ]
  103. },
  104. {
  105. "name": "cef",
  106. "build-options": {
  107. "no-debuginfo": true
  108. },
  109. "buildsystem": "simple",
  110. "build-commands": [
  111. "mkdir -p /app/cef/libcef_dll_wrapper",
  112. "cp -R ./include /app/cef",
  113. "cp -R ./Release /app/cef",
  114. "cp -R ./Resources /app/cef",
  115. "cp -R ./build/libcef_dll_wrapper/libcef_dll_wrapper.a /app/cef/libcef_dll_wrapper"
  116. ],
  117. "cleanup": [
  118. "*"
  119. ],
  120. "sources": [
  121. {
  122. "type": "archive",
  123. "url": "https://cdn-fastly.obsproject.com/downloads/cef_binary_6533_linux_x86_64_v6.tar.xz",
  124. "sha256": "7963335519a19ccdc5233f7334c5ab023026e2f3e9a0cc417007c09d86608146"
  125. }
  126. ]
  127. },
  128. {
  129. "name": "obs",
  130. "buildsystem": "cmake-ninja",
  131. "builddir": true,
  132. "config-opts": [
  133. "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
  134. "-DENABLE_WAYLAND=ON",
  135. "-DENABLE_BROWSER=ON",
  136. "-DCEF_ROOT_DIR=/app/cef",
  137. "-DENABLE_ALSA=OFF",
  138. "-DENABLE_PULSEAUDIO=ON",
  139. "-DENABLE_JACK=ON",
  140. "-DENABLE_VLC=OFF",
  141. "-DENABLE_AJA=ON",
  142. "-DENABLE_LIBFDK=ON",
  143. "-DENABLE_QSV11=ON",
  144. "-DENABLE_DECKLINK=OFF"
  145. ],
  146. "secret-opts": [
  147. "-DRESTREAM_CLIENTID=$RESTREAM_CLIENTID",
  148. "-DRESTREAM_HASH=$RESTREAM_HASH",
  149. "-DTWITCH_CLIENTID=$TWITCH_CLIENTID",
  150. "-DTWITCH_HASH=$TWITCH_HASH",
  151. "-DYOUTUBE_CLIENTID=$YOUTUBE_CLIENTID",
  152. "-DYOUTUBE_CLIENTID_HASH=$YOUTUBE_CLIENTID_HASH",
  153. "-DYOUTUBE_SECRET=$YOUTUBE_SECRET",
  154. "-DYOUTUBE_SECRET_HASH=$YOUTUBE_SECRET_HASH"
  155. ],
  156. "post-install": [
  157. "install -d /app/plugins",
  158. "install -d /app/extensions/Plugins"
  159. ],
  160. "sources": [
  161. {
  162. "type": "dir",
  163. "path": "../"
  164. }
  165. ]
  166. }
  167. ]
  168. }