Add metainfo.
This commit is contained in:
parent
12ed2c9b41
commit
6fce663733
2 changed files with 51 additions and 0 deletions
38
assets/com.experimentalcraft.NekoPlayer.metainfo.xml
Normal file
38
assets/com.experimentalcraft.NekoPlayer.metainfo.xml
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>com.experimentalcraft.NekoPlayer</id>
|
||||
|
||||
<name>Neko Player</name>
|
||||
<summary>An audio player that can play back files with seamless loops using their metadata.</summary>
|
||||
|
||||
<metadata_license>MIT</metadata_license>
|
||||
<project_license>MIT</project_license>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
An audio player that can play back files with seamless loops using their metadata.
|
||||
</p>
|
||||
<p>
|
||||
It can also change the pitch, tempo, and speed (which is pitch and tempo at the same time) using the SoundTouch libraries found on the system.
|
||||
</p>
|
||||
<p>
|
||||
### Themes This player supports theming! Go to the preferences window, and either select a theme, or open the theme editor.
|
||||
</p>
|
||||
<p>
|
||||
In addition, themes support changing the accent color to have the hue you select.
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">neko-player.desktop</launchable>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://complecwaft.com/catmeow/neko-player/raw/branch/main/screenshots/main_window.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<image>https://complecwaft.com/catmeow/neko-player/raw/branch/main/screenshots/dark_with_accent.png</image>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<image>https://complecwaft.com/catmeow/neko-player/raw/branch/main/screenshots/playing.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
</component>
|
13
meson.build
13
meson.build
|
@ -46,8 +46,21 @@ include_dirs = [
|
|||
]
|
||||
|
||||
res = run_command('./assets/update-assets.sh', check: true)
|
||||
# Validate MetaInfo file
|
||||
metainfo_file = '/path/to/com.experimentalcraft.NekoPlayer.metainfo.xml'
|
||||
ascli_exe = find_program('appstreamcli', required: false)
|
||||
if ascli_exe.found()
|
||||
test('validate metainfo file',
|
||||
ascli_exe,
|
||||
args: ['validate',
|
||||
'--no-net',
|
||||
'--pedantic',
|
||||
metainfo_file]
|
||||
)
|
||||
endif
|
||||
install_data('assets/icon.svg', rename: 'neko-player.svg', install_dir: 'share/icons/hicolor/scalable/apps/')
|
||||
install_data('assets/neko-player.desktop', install_dir: 'share/applications')
|
||||
install_data('assets/com.experimentalcraft.NekoPlayer.metainfo.xml', install_dir: 'share/metainfo')
|
||||
exe = executable('neko-player', srcs,
|
||||
dependencies: deps,
|
||||
include_directories: include_dirs,
|
||||
|
|
Loading…
Reference in a new issue