Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out of date tools in image #21

Open
RolandHughes opened this issue Sep 12, 2022 · 1 comment
Open

out of date tools in image #21

RolandHughes opened this issue Sep 12, 2022 · 1 comment

Comments

@RolandHughes
Copy link

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"?

@simoniz0r
Copy link
Owner

Sorry for the very late response, but you should be able to add --no-appstream as the last argument with deb2appimage to have appimagetool skip the validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants