appimage: Include metadata #9320

closes #9320
closes #9128
This commit is contained in:
pierre 2018-12-06 23:11:49 +01:00 committed by Justin M. Keyes
parent 1e8d2bdc48
commit 92806827a9
2 changed files with 39 additions and 0 deletions

37
runtime/nvim.appdata.xml Normal file
View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2018 Neovim contributors
See also:
https://appimage.github.io/neovim/
https://github.com/flathub/io.neovim.nvim
-->
<component type="desktop-application">
<id>nvim</id>
<project_license>Apache-2.0</project_license>
<metadata_license>CC0-1.0</metadata_license>
<name>Neovim</name>
<summary>Vim-fork focused on extensibility and usability</summary>
<description>
<p>Neovim is a refactor of the Vim text editor designed to encourage new features, advanced UIs, and powerful extensions.</p>
</description>
<screenshots>
<screenshot type="default">
<caption>Live :substitute feature</caption>
<image>https://neovim.io/images/nvim-screenshot-1.png</image>
</screenshot>
</screenshots>
<launchable type="desktop-id">nvim.desktop</launchable>
<url type="homepage">https://neovim.io/</url>
<url type="bugtracker">https://github.com/neovim/neovim/issues</url>
<url type="faq">https://github.com/neovim/neovim/wiki/FAQ</url>
<url type="help">https://neovim.io/doc/</url>
<url type="donation">https://neovim.io/#sponsor</url>
<url type="translate">https://github.com/neovim/neovim/tree/master/src/nvim/po</url>
<provides>
<binary>nvim</binary>
</provides>
</component>

View File

@ -45,6 +45,8 @@ curl -Lo "$APP_BUILD_DIR"/appimage_functions.sh https://github.com/AppImage/AppI
# get_desktop
cp "$ROOT_DIR/runtime/nvim.desktop" "$APP_DIR/"
cp "$ROOT_DIR/runtime/nvim.png" "$APP_DIR/"
mkdir "$APP_DIR/usr/share/metainfo/"
cp "$ROOT_DIR/runtime/nvim.appdata.xml" "$APP_DIR/usr/share/metainfo/"
cd "$APP_DIR"