app-id: io.github.librepods.gtk runtime: org.gnome.Platform runtime-version: '46' sdk: org.gnome.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable command: librepods-gtk finish-args: # Wayland/X11 display - --socket=wayland - --socket=fallback-x11 - --share=ipc # Network for Bluetooth (BlueZ uses system D-Bus) - --share=network # Bluetooth access via system D-Bus - --system-talk-name=org.bluez # D-Bus for MPRIS and notifications - --talk-name=org.freedesktop.Notifications - --talk-name=org.mpris.MediaPlayer2.* # StatusNotifierItem (system tray) - --talk-name=org.kde.StatusNotifierWatcher - --own-name=org.kde.StatusNotifierItem-* # Config directory - --filesystem=xdg-config/librepods-gtk:create build-options: append-path: /usr/lib/sdk/rust-stable/bin env: CARGO_HOME: /run/build/librepods-gtk/cargo RUST_BACKTRACE: '1' modules: - name: librepods-gtk buildsystem: simple build-options: env: CARGO_NET_OFFLINE: 'false' build-commands: - cargo build --release - install -Dm755 target/release/librepods-gtk -t /app/bin/ - install -Dm644 assets/io.github.librepods.gtk.desktop -t /app/share/applications/ - install -Dm644 flatpak/io.github.librepods.gtk.metainfo.xml -t /app/share/metainfo/ sources: - type: dir path: ..