app-id: io.github.mricho495.Hangar runtime: org.gnome.Platform runtime-version: '50' sdk: org.gnome.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.rust-stable command: hangar-gui finish-args: # Native GNOME UI. - --socket=wayland - --socket=fallback-x11 - --share=ipc - --device=dri # The only host access we need: the drop folder (source + .hangar cache)... - --filesystem=~/AppImages # ...and the ability to launch the extracted app on the host (extract-and-run). - --talk-name=org.freedesktop.Flatpak # Write per-app launcher stubs into the user's applications dir. - --filesystem=xdg-data/applications:create - --filesystem=xdg-data/icons:create build-options: append-path: /usr/lib/sdk/rust-stable/bin env: CARGO_HOME: /run/build/hangar/cargo # Self-hosted (not Flathub): allow network so cargo can fetch crates at build # time. For a Flathub submission this would be replaced by vendored # cargo-sources.json (offline build). build-args: - --share=network modules: - name: hangar buildsystem: simple build-commands: - cargo --offline build --release --features gui || cargo build --release --features gui - install -Dm755 target/release/hangar-gui /app/bin/hangar-gui - install -Dm755 target/release/hangar /app/bin/hangar - install -Dm644 data/io.github.mricho495.Hangar.desktop /app/share/applications/io.github.mricho495.Hangar.desktop - install -Dm644 data/io.github.mricho495.Hangar.metainfo.xml /app/share/metainfo/io.github.mricho495.Hangar.metainfo.xml - install -Dm644 data/icons/hicolor/scalable/apps/io.github.mricho495.Hangar.svg /app/share/icons/hicolor/scalable/apps/io.github.mricho495.Hangar.svg sources: - type: dir path: .