Skip to content

Commit

Permalink
dist: ship AppStream metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Sep 14, 2024
1 parent 71c5c8d commit 87c996f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions dist/appstream/net.blumia.pineapple-tracker-player.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop-application">
<id>net.blumia.pineapple-tracker-player</id>
<name>Pineapple Tracker Player</name>
<name xml:lang="zh-CN">菠萝模块音乐播放器</name>
<summary>Modular Music Player</summary>
<summary xml:lang="zh-CN">模块音乐播放器</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<developer_name>Gary (BLumia) Wang</developer_name>
<developer_name xml:lang="zh-CN">Gary (BLumia) Wang</developer_name>
<description>
<p>Pineapple Tracker Player is a Modular Music Player</p>
<p xml:lang="zh-CN">菠萝模块音乐播放器是一个模块音乐播放器</p>
</description>
<launchable type="desktop-id">net.blumia.pineapple-tracker-player.desktop</launchable>
<screenshots>
<screenshot type="default">
<caption>Main window when modular files are loaded</caption>
<caption xml:lang="zh-CN">加载模块音乐后的主窗口</caption>
<image type="source" width="600" height="449">https://pineapple-tracker-player.sourceforge.io/ptp-gui-static.png</image>
</screenshot>
</screenshots>

<url type="homepage">https://github.com/BLumia/pineapple-tracker-player</url>
<url type="bugtracker">https://github.com/BLumia/pineapple-tracker-player/issues</url>
<provides>
<binary>pineapple-tracker-player</binary>
</provides>
<content_rating type="oars-1.1"/>
</component>
6 changes: 6 additions & 0 deletions widget/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ install (
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications"
)

# install app metadata file for appstream (and some other stuff using this metadata like snapcraft)
install (
FILES ../dist/appstream/net.blumia.pineapple-tracker-player.metainfo.xml
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo"
)

if(QT_VERSION_MAJOR EQUAL 6)
qt_finalize_executable(pineapple-tracker-player)
endif()

0 comments on commit 87c996f

Please sign in to comment.