forked from flathub-infra/flatpak-builder-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
appstream: Require that appstream IDs match $FLATPAK_ID
For historical reasons flatpak-builder passes ``$FLATPAK_ID.desktop` as a valid component ID to appstreamcli. This mismatch creates issues like the one described in flatpak/flatpak#5752 and flathub/flathub#4222 So require that both match and avoid new submissions leaking in with a mismatch.
- Loading branch information
Showing
6 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+579 Bytes
...flatpak-id/files/share/app-info/xmls/org.flathub.appstream-cid-mismatch-flatpak-id.xml.gz
Binary file not shown.
32 changes: 32 additions & 0 deletions
32
...latpak-id/files/share/metainfo/org.flathub.appstream-cid-mismatch-flatpak-id.metainfo.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<component type="desktop-application"> | ||
<id>org.flathub.appstream-cid-mismatch-flatpak-id.desktop</id> | ||
<name>Foo Foo Foo Foo Foo Foo Foo Foo Foo Foo</name> | ||
<summary>Bar Bar Bar Bar Bar Bar Bar Bar Bar Bar Bar Bar.</summary> | ||
<url type="homepage">https://flathub.org</url> | ||
<description> | ||
<p>This is an example</p> | ||
</description> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<launchable type="desktop-id">org.flathub.appstream-cid-mismatch-flatpak-id.desktop</launchable> | ||
<icon type="cached" width="128" height="128">com.github.flathub.appdata-quality.png</icon> | ||
<categories> | ||
<category>Network</category> | ||
</categories> | ||
<provides> | ||
<id>com.github.flathub.appdata-quality.desktop</id> | ||
</provides> | ||
<screenshots> | ||
<screenshot type="default"> | ||
<image type="source">https://upload.wikimedia.org/wikipedia/commons/a/af/Tux.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<image type="source">https://dl.flathub.org/assets/badges/flathub-badge-en.png</image> | ||
</screenshot> | ||
<screenshot> | ||
<caption>Foo Foo Foo</caption> | ||
<image type="source">https://dl.flathub.org/assets/badges/flathub-badge-i-en.png</image> | ||
</screenshot> | ||
</screenshots> | ||
<content_rating type="oars-1.1"/> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Application] | ||
name=org.flathub.appstream-cid-mismatch-flatpak-id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters