simoniz0r / deb2appimage

Build AppImages from deb packages on any distro with simple json configuration
MIT License
117 stars 14 forks source link

out of date tools in image #21

Open RolandHughes opened 2 years ago

RolandHughes commented 2 years ago

All,

It's time to update the appdata.xml verification. I will have the code for my project pushed soon, but here is the issue I and others have spent two days trying to track down. Part of the problem is that the documentation for the appstream stuff is looking up at wretched hoping to one day be that good. The other part is that Ubuntu 18.04 works differently with this stuff than RPM based distros.

Creating .DirIcon symlink based on information from desktop file
WARNING: AppStream upstream metadata is missing, please consider creating it
         in usr/share/metainfo/reddiamond.appdata.xml
         Please see https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopApps
         for more information or use the generator at http://output.jsbin.com/qoqukof.

The new "standard" is to have the appdata.xml named in reverse URL. I now have to have both net.projects.reddiamond.appdata.xml and reddiamond.appdata.xml with identical content inside of the .deb. Once chunk of the process wants the new "standard" name format and the other chunk does not.

AppStream upstream metadata found in usr/share/metainfo/reddiamond.appdata.xml
Trying to validate AppStream information with the appstreamcli tool
In case of issues, please refer to https://github.com/ximion/appstream
W - reddiamond.appdata.xml:net.projects.reddiamond
    The metainfo filename does not match the component ID.

Validation failed: warnings: 1, pedantic: 2
run_external: subprocess exited with status 3Failed to validate AppStream information with appstreamcli
Trying to validate AppStream information with the appstreamcli tool
In case of issues, please refer to https://github.com/ximion/appstream
W - reddiamond.appdata.xml:reddiamond:5
    The component ID is not a reverse domain-name. Please update the ID and that of 
    the accompanying .desktop file to follow the latest version of the Desktop-Entry 
    and AppStream specifications and avoid future issues.

The closest one can find to valid documentation for appstream is here https://docs.fedoraproject.org/en-US/packaging-guidelines/AppData/

developer@developer-U18-Dev-VirtualBox:~/sf_projects/reddiamond$ ls -al net.*
-rw-rw-r-- 1 developer developer 907 Sep 12 09:42 net.projects.reddiamond.appdata.xml
-rw-rw-r-- 1 developer developer 446 Sep 11 16:07 net.projects.reddiamond.desktop
developer@developer-U18-Dev-VirtualBox:~/sf_projects/reddiamond$ 

When using the new "standard" names

Using architecture x86_64
/home/developer/.cache/deb2appimage/AppDir should be packaged as /home/developer/reddiamond-3.2.0-x86_64.AppImage
Deleting pre-existing .DirIcon
Creating .DirIcon symlink based on information from desktop file
WARNING: AppStream upstream metadata is missing, please consider creating it
         in usr/share/metainfo/reddiamond.appdata.xml
         Please see https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopApps
         for more information or use the generator at http://output.jsbin.com/qoqukof.
Generating squashfs...

So, could this be updated to support the new "standard"?