app-id: net.mccompanion.MCCompanion runtime: org.gnome.Platform runtime-version: '50' sdk: org.gnome.Sdk command: MCCompanion finish-args: # Wayland + X11 display - --socket=wayland - --socket=fallback-x11 - --share=ipc # OpenGL - --device=dri # Network access (server pinger, wiki, Firebase) - --share=network # Allow connectivity_plus to communicate with NetworkManager via System D-Bus - --system-talk-name=org.freedesktop.NetworkManager # Grant access to host Documents folder - --filesystem=xdg-documents modules: - name: zenity buildsystem: meson sources: - type: archive url: https://download.gnome.org/sources/zenity/4.0/zenity-4.0.1.tar.xz sha256: 0c2f537813b10f728470d9d05d6c95713db2512f9c95096e1e85b1a6739605e6 - name: MCCompanion buildsystem: simple build-commands: # Install the pre-built Flutter bundle produced by 'flutter build linux --release' - install -Dm755 MCCompanion /app/bin/MCCompanion - cp -r lib /app/bin/lib - cp -r data /app/bin/data # Desktop entry - install -Dm644 net.mccompanion.MCCompanion.desktop /app/share/applications/net.mccompanion.MCCompanion.desktop # App icon (256×256 PNG) - install -Dm644 net.mccompanion.MCCompanion.png /app/share/icons/hicolor/256x256/apps/net.mccompanion.MCCompanion.png # AppStream metainfo - install -Dm644 net.mccompanion.MCCompanion.metainfo.xml /app/share/metainfo/net.mccompanion.MCCompanion.metainfo.xml sources: - type: archive url: https://github.com/MCCORG/MCCompanion/releases/download/v4.1.9/MCCompanion-linux-x64.tar.gz sha256: 1155cb72484b6a4e42653ae2cd31a5a164edcea750a393467878a6c728a179fe x-checker-data: type: json url: https://api.github.com/repos/MCCORG/MCCompanion/releases/latest version-query: .tag_name | sub("^v"; "") url-query: .assets[] | select(.name == "MCCompanion-linux-x64.tar.gz") | .browser_download_url is-main-source: true - type: file url: https://raw.githubusercontent.com/MCCORG/MCCompanion/main/flatpak/net.mccompanion.MCCompanion.metainfo.xml sha256: 1a2aa3520e1e057a40f582d9cf7604969570332ab3783b2ef418491516e5c272 dest-filename: net.mccompanion.MCCompanion.metainfo.xml x-checker-data: type: json url: https://api.github.com/repos/MCCORG/MCCompanion/releases/latest version-query: .tag_name | sub("^v"; "") url-query: '"https://raw.githubusercontent.com/MCCORG/MCCompanion/" + .tag_name + "/flatpak/net.mccompanion.MCCompanion.metainfo.xml"' - type: file url: https://raw.githubusercontent.com/MCCORG/MCCompanion/main/flatpak/net.mccompanion.MCCompanion.desktop sha256: 73d5677e6a6171ae6bb1b878991ee51a76dda606bdb942f9a2d953ff3703a1c3 dest-filename: net.mccompanion.MCCompanion.desktop x-checker-data: type: json url: https://api.github.com/repos/MCCORG/MCCompanion/releases/latest version-query: .tag_name | sub("^v"; "") url-query: '"https://raw.githubusercontent.com/MCCORG/MCCompanion/" + .tag_name + "/flatpak/net.mccompanion.MCCompanion.desktop"' - type: file url: https://raw.githubusercontent.com/MCCORG/MCCompanion/main/flatpak/net.mccompanion.MCCompanion.png sha256: 0b221eeab164210039031558fe854937d0fb7658699039f967de44358d5ee5f1 dest-filename: net.mccompanion.MCCompanion.png x-checker-data: type: json url: https://api.github.com/repos/MCCORG/MCCompanion/releases/latest version-query: .tag_name | sub("^v"; "") url-query: '"https://raw.githubusercontent.com/MCCORG/MCCompanion/" + .tag_name + "/flatpak/net.mccompanion.MCCompanion.png"'