app-id: us.tylerc.cycles runtime: org.freedesktop.Platform runtime-version: '23.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.golang command: cycles finish-args: - --share=ipc - --socket=fallback-x11 - --device=dri - --socket=wayland # Needed to support desktop notifications. #- --talk-name=org.freedesktop.Notifications - --filesystem=home build-options: env: - GOBIN=/app/bin - GOROOT=/usr/lib/sdk/golang modules: - name: cycles buildsystem: simple build-commands: - $GOROOT/bin/go build -trimpath -o cycles - install -Dm00755 cycles $FLATPAK_DEST/bin/cycles - install -Dm00644 icon.png $FLATPAK_DEST/share/icons/hicolor/512x512/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/TylerCode/cycles/archive/refs/tags/0.4.1.tar.gz" sha256: 845344b00555d7029d2a0ebf6d6de028b43c926d097c19b5745a4d01d804c292