app-id: io.fyne.flatpak_demo runtime: org.freedesktop.Platform runtime-version: '25.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.golang command: flatpak_demo finish-args: - --share=ipc # Share IPC namespace with the host (necessary for X11). - --socket=x11 - --device=dri # OpenGL rendering support. # Only needed if building with -tags wayland. #- --socket=wayland # Needed to support desktop notifications. - --talk-name=org.freedesktop.Notifications # Allowing access to the home directory as example. - --filesystem=home build-options: env: - GOBIN=/app/bin - GOROOT=/usr/lib/sdk/golang modules: - name: flatpak_demo buildsystem: simple build-commands: - $GOROOT/bin/go build -trimpath -o flatpak_demo - install -Dm00755 flatpak_demo $FLATPAK_DEST/bin/flatpak_demo - install -Dm00644 Icon.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/$FLATPAK_ID.png - install -Dm00644 $FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop - install -Dm00644 $FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml sources: - type: archive url: "https://github.com/fyne-io/flatpak_demo/archive/refs/tags/v1.3.0.tar.gz" sha256: a9d3b920404b3b699da757a9641ebc75cf43e35515dd9879622de33c6d104b63 # Update by running sha256sum on the file linked in the url.