The version entries were mentioned in the “building your first flatpak” doc I read last year when I first started taking an interest in Flatpak after all the controversy surrounding Snap. I can’t find the original document I read at that time, but that’s where I got the foundation for my initial manifest.
As for the desktop file… The filename is io.github.evilsupahfly.amulet_flatpak.desktop
and the contents were auto-generated by the AppStream Project.
[Desktop Entry]
Version=1.0
Type=Application
Name=Amulet Minecraft Map Editor (Flatpak Edition)
Comment=A powerful map editor for Minecraft worlds
Categories=Game;KidsGame;
Icon=io.github.evilsupahfly.amulet_flatpak.png
Exec=flatpak run io.github.evilsupahfly.amulet_flatpak
Terminal=true
Name[en_CA]=io.github.evilsupahfly.amulet_flatpak.desktop
I went back a looked at the guide pages and apparently I misread the docs.
So I’m #
out the version stuff, and taking out the filenames in the metainfo entries:
- name: metainfo-xml
buildsystem: simple
build-commands:
- install -Dm644 io.github.evilsupahfly.amulet_flatpak.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/
sources:
- type: file
path: io.github.evilsupahfly.amulet_flatpak.metainfo.xml
- name: metainfo-ico
buildsystem: simple
build-commands:
- install -Dm644 io.github.evilsupahfly.amulet_flatpak.png -t ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/
sources:
- type: file
path: io.github.evilsupahfly.amulet_flatpak.png
- name: metainfo-desktop
buildsystem: simple
build-commands:
- install -Dm755 io.github.evilsupahfly.amulet_flatpak.desktop -t ${FLATPAK_DEST}/share/applications/
sources:
- type: file
path: io.github.evilsupahfly.amulet_flatpak.desktop
… I’m still wondering if there’s a way to get a better error report though. Granted, taking on something like Amulet for my first Flatpak project was probably not the best idea…