Something went wrong. Try again.
Hangar is your Bluesky home base—built natively for Linux. ✈️ hangar.blue
libadwaita gtk4 bluesky flatpak gnome atprotocol linux atproto appimage rust
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445# SPDX-License-Identifier: MPL-2.0
name: Flatpak
on: workflow_dispatch:
jobs: flatpak: name: Build Flatpak runs-on: ubuntu-latest container: image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-50 options: --privileged
steps: - name: Checkout uses: actions/checkout@v7
- name: Stamp the build version run: | sed -i "s/^ RUST_BACKTRACE: '1'$/ RUST_BACKTRACE: '1'\n HANGAR_VERSION: 'git-${GITHUB_SHA::7}'/" io.github.sethcottle.Hangar.yml grep -q "HANGAR_VERSION" io.github.sethcottle.Hangar.yml || { echo "version stamp missed the manifest" >&2; exit 1; }
- name: Generate Cargo sources run: | dnf install -y python3-toml python3-tomlkit python3-aiohttp curl -sSL https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/cargo/flatpak-cargo-generator.py -o flatpak-cargo-generator.py python3 flatpak-cargo-generator.py Cargo.lock -o cargo-sources.json
- name: Build Flatpak uses: flatpak/flatpak-github-actions/flatpak-builder@v6.7 with: manifest-path: io.github.sethcottle.Hangar.yml bundle: hangar.flatpak upload-artifact: false cache-key: flatpak-builder-${{ github.sha }}
- name: Upload Flatpak artifact uses: actions/upload-artifact@v7 with: name: hangar-flatpak path: hangar.flatpak retention-days: 7