Looking for some advice on building a flatpak

Arimil renari at arimil.com
Thu Mar 20 20:44:04 UTC 2025


I'm trying to create an addon flatpak for the obs teleport plugin, after
reading through docs and trying various things I've gotten this far.

id: com.obsproject.Studio.Plugin.Teleport
branch: stable
runtime: com.obsproject.Studio
runtime-version: stable
sdk: org.freedesktop.Sdk//24.08
sdk-extensions:
  - org.freedesktop.Sdk.Extension.golang
build-extension: true
separate-locales: false
appstream-compose: false
build-options:
  prefix: /app/plugins/Teleport
  libdir: lib/obs-plugins
  append-path: /usr/lib/sdk/golang/bin
modules:
  - name: obs-teleport
    buildsystem: simple
    build-options:
      build-args:
        - --share=network
      env:
        - GOBIN=/app/bin
        - GOPATH=/run/build/obs-teleport/go
    build-commands:
      - go mod vendor
      - go build -mod=vendor -ldflags "-compressdwarf=false -linkmode
external -X main.version=0.7.4" -v -o
"${FLATPAK_DEST}/lib/obs-plugins/obs-teleport.so" .
    sources:
      - type: git
        url: https://github.com/fzwoch/obs-teleport.git
        tag: 0.7.4
        commit: 3e012bdcde3c8609cc89f1ede6225e30c89451ab
        x-checker-data:
          type: git
          tag-pattern: ^([\d.]+)
      - type: file
        path: com.obsproject.Studio.Plugin.Teleport.metainfo.xml


This is good enough to get the build started but I have some concerns, I
notice that every other OBS plugin is using sdk org.kde.Sdk//6.6 (which is
the same SDK the OBS main package uses). I switched this over
to org.freedesktop.Sdk//24.08 because the plugin is written in go and
freedesktop ships a golang extension. Are there any problems with doing
this? I've also hit a snag after that and I'm not sure why, but currently
the project fails to build due to the obs headers missing, but I don't see
anything in any other OBS plugin doing something special to obtain these, I
originally thought that's what setting the runtime was doing, however that
appears to not be the case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20250320/d0405042/attachment.htm>


More information about the Flatpak mailing list