I’m having trouble doing two very simple things:
- Setting the snapcraft icon
- Adopting the metadata from an AppStream metadata file
My folder structure looks like this:
- /build
----icon.svg
----snapcraft.yaml
----metainfo.xml
My snapcraft.yaml looks like this:
adopt-info: metadata
icon: icon.svg
parts:
metadata:
plugin: dump
source: .
parse-info: [metainfo.xml]
The output when I include the icon is:
Specified icon 'icon.svg' does not exist.
The output when I attempt to do the adopt-info:
No metadata extracted from metainfo.xml
No metadata extracted from metainfo.xml
No metadata extracted from metainfo.xml
I’m not sure why it prints that 3 times. Here’s the content of my metainfo.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.example.my-app</id>
<name>my-app</name>
<summary>my-app</summary>
<description>
my-app
</description>
<launchable type="desktop-id">
com.example.myapp
</launchable>
<releases>
<release date="2024-01-01" version="1.0.0"/>
</releases>
</component>
This seems like the most basic problem and I must be missing something obvious. I’m using snapcraft 8.x with lxd on Ubuntu 22.