Cubitect / cubiomes-viewer

An efficient graphical Minecraft seed finder and map viewer.
GNU General Public License v3.0
1.08k stars 62 forks source link

Flatpak manifest #139

Closed JakobDev closed 2 years ago

JakobDev commented 2 years ago

I got some free time and I was boring, so I created a Flatpak manifest for cubiomes-viewer:

app-id: com.github.cubitect.cubiomes-viewer
runtime: org.kde.Platform
runtime-version: "5.15-21.08"
sdk: org.kde.Sdk
command: cubiomes-viewer
finish-args:
  - --socket=fallback-x11
  - --socket=wayland
  - --device=dri
  - --share=ipc

modules:
  - name: cubiomes-viewer
    buildsystem: qmake
    post-install:
      - install -Dm755 cubiomes-viewer /app/bin/cubiomes-viewer
      - install -Dm644 etc/com.github.cubitect.cubiomes-viewer.desktop /app/share/applications/com.github.cubitect.cubiomes-viewer.desktop
    sources:
      - type: archive
        url: https://github.com/Cubitect/cubiomes-viewer/releases/download/2.2.2/cubiomes-viewer-2.2.2-src.tar.gz
        sha256: 8eeb68c96c11b299a3a997ef5bb2bea417e47e195d7d942db07cdf3f93d24adc
    cleanup:
      - /lib

Save it as com.github.cubitect.cubiomes-viewer.yaml and build with:

flatpak-builder --user --install --force-clean build-dir com.github.cubitect.cubiomes-viewer.yaml

Now you can run it from the Menu.

The program itself works without problems, but there are still a few things to do:

Cubitect commented 2 years ago

Thanks, I have submitted a PR to the flathub.