sailfish_add_chum_metadata
Inject SailfishOS:Chum metadata into RPM spec files to enable app listings in the Chum repository. Automatically reads project details from git and spec files, with options to override values for categories, author, icon, and donation URL.
Instructions
Inject SailfishOS:Chum metadata into the RPM spec of an existing project. Reads the License field and app name from the spec, the repository URL and author name from git, and the icon URL from the local icons/ directory. All values can be overridden. The metadata block is appended as the last paragraph of %description, wrapped in %if 0%{?_chum} … %endif.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectDir | Yes | Absolute path to the existing SailfishOS project root | |
| categories | No | AppStream categories for the Chum listing. See https://specifications.freedesktop.org/menu-spec/latest/category-registry.html. Examples: ["Network"], ["Multimedia", "Audio"]. Defaults to ["Other"]. | |
| authorName | No | Override the developer name shown in Chum. Auto-detected from `git config user.name` inside projectDir if omitted. | |
| packageIconUrl | No | Override the package icon URL. Auto-derived from the git remote + local icons/ directory if omitted (e.g. https://raw.githubusercontent.com/user/harbour-foo/master/icons/harbour-foo.svg). | |
| donationUrl | No | Optional donation page URL shown in the Chum GUI. |