app-id: com.github.unrud.RemoteTouchpad runtime: org.freedesktop.Platform runtime-version: '25.08' sdk: org.freedesktop.Sdk command: remote-touchpad sdk-extensions: - org.freedesktop.Sdk.Extension.golang finish-args: - --socket=fallback-x11 - --socket=wayland - --share=ipc # Required by Flathub linter - --share=network modules: - name: remote-touchpad sources: - type: git path: .. - type: git url: https://github.com/godbus/dbus tag: v5.1.0 commit: e523abc905595cf17fb0001a7d77eaaddfaa216d dest: vendor/github.com/godbus/dbus/v5 - type: git url: https://github.com/skip2/go-qrcode commit: da1b6568686e89143e94f980a98bc2dbd5537f13 dest: vendor/github.com/skip2/go-qrcode - type: git url: https://github.com/golang/net tag: v0.46.0 commit: 2002a064a49010d8b881673c73f04e0b741e7c32 dest: vendor/golang.org/x/net - type: git url: https://github.com/golang/crypto tag: v0.43.0 commit: 627cb894b6b2021e34c4ad4af4c0a963127491e4 dest: vendor/golang.org/x/crypto - type: file path: modules.txt dest: vendor buildsystem: simple build-commands: - . /usr/lib/sdk/golang/enable.sh; go build -tags portal,x11 - install -Dm0755 -t /app/bin remote-touchpad - install -Dm0755 -t /app/bin desktop/remote-touchpad-wait-on-error - install -Dm0644 -t /app/share/metainfo desktop/com.github.unrud.RemoteTouchpad.metainfo.xml - install -Dm0644 -t /app/share/applications desktop/com.github.unrud.RemoteTouchpad.desktop - install -Dm0644 -t /app/share/icons/hicolor/scalable/apps desktop/com.github.unrud.RemoteTouchpad.svg - | for res in 16 32 48 64 128 256 512; do rsvg-convert --height "${res}" --keep-aspect-ratio --format png --output com.github.unrud.RemoteTouchpad.png desktop/com.github.unrud.RemoteTouchpad.svg || exit 1 install -Dm0644 -t "/app/share/icons/hicolor/${res}x${res}/apps" com.github.unrud.RemoteTouchpad.png || exit 1 done