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

Metainfo (Appstream) data is not used (adopt-info, parse-info) #5278

Open
knipknap opened this issue Feb 23, 2025 · 0 comments
Open

Metainfo (Appstream) data is not used (adopt-info, parse-info) #5278

knipknap opened this issue Feb 23, 2025 · 0 comments

Comments

@knipknap
Copy link

knipknap commented Feb 23, 2025

Bug Description

Given the following snapcraft.yaml:

name: rayforge
version: git
adopt-info: rayforge
confinement: strict
base: core24

apps:
  rayforge:
    extensions: [gnome]
    common-id: com.barebaric.rayforge
    desktop: share/applications/com.barebaric.rayforge.desktop

...

parts:
  rayforge:
    plugin: python
    source: .
    python-requirements:
      - requirements.txt
    build-packages:
      - python3-pip
      - python3-setuptools
      - git  # Required for git describe
    parse-info: [share/metainfo/com.barebaric.rayforge.metainfo.xml]

Full file: https://github.com/barebaric/rayforge/blob/main/snap/snapcraft.yaml

I am seeing that some attributes from the metadata appear to be adopted, while others are not.

What works: Summary and description.

What doesn't work: Website, license, screenshots, categories, ...

I am puzzled. Running snapcraft with --verbosity debug does not reveal anything containing "appstream" or "metainfo".

Here is the full metainfo:

<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
  <id>com.barebaric.rayforge</id>
  <developer id="com.barebaric">
    <name translate="no">Samuel Abels</name>
  </developer>
  <content_rating type="oars-1.1" />
  <url type="homepage">https://github.com/barebaric/rayforge</url>
  <url type="bugtracker">https://github.com/barebaric/rayforge/issues</url>

  <name>Rayforge</name>
  <summary>A desktop application for laser cutting and engraving</summary>

  <categories>
    <category>Utility</category>
    <category>Engineering</category>
  </categories>

  <metadata_license>MIT</metadata_license>
  <project_license>MIT</project_license>

  <description>
    <p>
      Rayforge is a desktop application for laser cutting and engraving.
      It provides an intuitive interface to create and manage laser
      cutting projects.
      Rayforge supports importing SVG, DXF, PDF, and PNGs, and provides
      advanced features such as multi step jobs, automatic path
      optimization, interpolation based on laser dot size, and much more.
    </p>
  </description>
  
  <launchable type="desktop-id">com.barebaric.rayforge.desktop</launchable>

  <recommends>
    <control>keyboard</control>
    <control>pointing</control>
    <display_length compare="ge">768</display_length>
  </recommends>

  <icon type="local">share/icons/hicolor/scalable/apps/com.barebaric.rayforge.svg</icon>

  <branding>
    <color type="primary" scheme_preference="light">#efb0a1</color>
    <color type="primary" scheme_preference="dark">#373f43</color>
  </branding>

  <screenshots>
    <screenshot type="default">
      <caption>The main window of Rayforge.</caption>
      <image type="source" width="1462" height="1209">https://raw.githubusercontent.com/barebaric/rayforge/main/docs/ss-main.png</image>
    </screenshot>
  </screenshots>

  <releases>
    <release version="0.1" date="2025-02-08">
      <description>
        <p>This is the initial release.</p>
      </description>
    </release>
  </releases>
</component>

To Reproduce

git clone git@github.com:barebaric/rayforge.git
cd rayforge
snapcraft --verbosity debug

Note that it builds successfully, but after snapcraft upload the info is incomplete.

Image

Environment

Ubuntu, or Github pipeline, too. Example build:
https://github.com/barebaric/rayforge/actions/runs/13482604479/job/37669702127

Relevant log output

No relevant logs as far as I can see. Example build see here:
https://github.com/barebaric/rayforge/actions/runs/13482604479/job/37669702127

Additional context

No response

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

1 participant