# Flatpak manifest for the wt GUI. # # Build (from the repo root, fully offline thanks to the vendored sources # below): # flatpak-builder --force-clean --user --install \ # --install-deps-from=flathub build-dir packaging/flatpak/dev.didley.wt.yml # # generated-sources.yml/modules.txt were produced by running # https://github.com/dennwc/flatpak-go-mod against gui/ (the Wails module the # build actually compiles) and moving its go.mod.yml/modules.txt output here. # Regenerate them after bumping gui/go.mod or gui/go.sum. app-id: dev.didley.wt runtime: org.gnome.Platform # GNOME 50 is based on freedesktop 25.08, so sdk-extensions resolve to the # 25.08 branch (golang 25.08 ships Go 1.26). Flathub EOLs old branches: # when bumping, check `flatpak remote-ls flathub | grep gnome.Platform`. runtime-version: '50' sdk: org.gnome.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.golang command: wt-gui finish-args: - --socket=wayland - --socket=fallback-x11 - --share=ipc - --device=dri # git repos can live anywhere in the user's home - --filesystem=home # core runs `flatpak-spawn --host git …` so the user's real git, # config and credential helpers are used - --talk-name=org.freedesktop.Flatpak modules: - name: wt-gui buildsystem: simple build-options: append-path: /usr/lib/sdk/golang/bin build-commands: # Version comes from the metainfo's latest , the single # source of truth for the Linux packaging version (there's no git # tag to read at this point in the build). # The github.com/didley/wt module (internal/core) is pulled in via a # local `replace` in gui/go.mod, so flatpak-go-mod's proxy-fetched # vendor tree (generated-sources.yml) can't cover it — it lists the # module in modules.txt but has no URL to fetch it from. Copy it in # from the repo checkout instead. - mkdir -p gui/vendor/github.com/didley/wt && cp LICENSE gui/vendor/github.com/didley/wt/ && cp -r internal gui/vendor/github.com/didley/wt/internal - VERSION=$(grep -m1 -oP '(?<=