You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/packaging/appstream-metainfo.md
+32-31Lines changed: 32 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,8 @@ There are a few scenarios that Packagers might encounter:
32
32
| 1 | An application already provides appstream metainfo | Nothing to do |
33
33
| 2 | An application contains appstream metainfo in the source package but we do not install it | Install the appstream metainfo to `/usr/share/metainfo`. _Example_: [here](https://github.com/getsolus/packages/commit/0a726a53454e7c8a6b0e66de69d59bcc66f0fc19)|
34
34
| 3 | An application doesn't contain appstream metainfo in the source package but it exists on Flathub | Borrow and tweak the appstream metainfo from the Flathub repo. Encourage upstream project to add it to their source. _Example_: [here](https://github.com/getsolus/packages/commit/da2f65b93f412da43d1db9edbcb08bb90517a0eb)|
35
-
| 4 | An application doesn't provide appstream metainfo and it doesn't exist on flathub | See [here](#writing-appstream-metainfo). _Example_: [here](https://github.com/getsolus/packages/commit/414219d8b2ceeabe85178d3a467f81b9131016f4)|
36
-
| 5 | Appstream metainfo is provided but composition of it is failing | See [here](#testing-appstream-metainfo). _Example_: [here](https://github.com/getsolus/packages/commit/583b7c742caf50e2f66a70e9b62e9b91566c03f5). |
35
+
| 4 | An application doesn't provide appstream metainfo and it doesn't exist on flathub | See [here](#writing-appstream-metainfo). _Example_: [here](https://github.com/getsolus/packages/commit/414219d8b2ceeabe85178d3a467f81b9131016f4)|
36
+
| 5 | Appstream metainfo is provided but composition of it is failing | See [here](#testing-appstream-metainfo). _Example_: [here](https://github.com/getsolus/packages/commit/583b7c742caf50e2f66a70e9b62e9b91566c03f5).|
37
37
38
38
AppStream metainfo is to be installed in the `/usr/share/metainfo/` directory. It must be placed in the package which should be installed in order to get the software described by the respective metadata. This means that you might need to move the _.metainfo.xml or _.appdata.xml to the right (sub)package.
39
39
@@ -55,15 +55,14 @@ In case your AppStream metainfo is describing a desktop application (you can tel
55
55
56
56
- Run a report against the extracted install directory.
57
57
58
-
59
58
For general testing, the following command should be sufficient:
@@ -80,7 +79,7 @@ The `appstreamcli compose` tool will normally give good hints about failures but
80
79
81
80
- A `.desktop` file cannot be matched to the metainfo file.
82
81
- By default, the `.desktop` file name must match the `<id>` provided in `.xml` file in `/usr/share/metainfo/`. For example, the if you have `<id>org.foobar.my_package</id>` the `.desktop` file should be called `org.foobar.my_package.desktop`. However, there is an exception to this if the metainfo provides a launchable tag. For example, if the metainfo contains `<launchable type="desktop-id">my_package.desktop</launchable>` then the `.desktop` file can be just called `my_package.desktop`. For more information view the upstream documentation [here](https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html#spec-appdata-introduction).
83
-
- No metainfo file is provided.
82
+
- No metainfo file is provided.
84
83
- No appstream metainfo was found in `/usr/share/metainfo/`.
85
84
- Appstream metainfo may exist in `/usr/share/appdata/` but that path is now obsolete and is no longer read from.
86
85
- No icon found.
@@ -111,19 +110,20 @@ It is not necessary to pass all pedantic warnings, but all errors must be rectif
111
110
To generate a catalog with appstream generator, a `asgen-config.json` file must be provided.
112
111
113
112
Here is a example configuration file for running against local repositories.
@@ -134,25 +134,26 @@ To generate the catalog run `appstream-generator run local --verbose`. Depending
134
134
To view the HTML report, you can start a http server with `python3 -m http.server 8000`, enter `http://localhost:8000/` in your web browser, then navigate to `export/html/`.
135
135
136
136
It can also be ran against a remote repository, here is a sample configuration.
Copy file name to clipboardExpand all lines: docs/packaging/monitoring.yaml.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ To add a `monitoring.yaml` file to an existing package you can use the following
25
25
`go-task add-monitoring` will automatically fill all the fields if a match is found on [release-monitoring.org](https://release-monitoring.org) and [cpe-guesser.cve-search.org](https://cpe-guesser.cve-search.org).
Copy file name to clipboardExpand all lines: docs/packaging/packaging-practices.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,7 @@ All new packages or updates to packages should abide by the [SPDX 3.x](https://s
92
92
93
93
License files that are present in an upstream project must also be installed with the package. This can be easily done with the `%install_license` macro. The macro will install any files passed to it to the system licenses directory, `$installdir/usr/share/licenses/$package/`. The files passed to the macro are expected to be relative to the project's source root.
**Also check to see if there's already an active maintainer**
21
-
If there's a MAINTAINER.md file, see [this](https://help.getsol.us/docs/packaging/procedures/maintainership).
21
+
If there's a MAINTAINER.md file, see [this](https://help.getsol.us/docs/packaging/procedures/maintainership).
22
22
Please contact the maintainer listed in that file, or [create a package update request](https://github.com/getsolus/packages/labels/Package%3A%20Update%20Request) before attempting to update the package.
0 commit comments