chore(metainfo): edit (#7446) (#7488)

This commit is contained in:
Raboneko
2025-11-19 08:31:07 -08:00
committed by GitHub
parent 194eb25f54
commit decf2c8ffa
2 changed files with 34 additions and 1 deletions
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<component type="console-application">
<id>com.microsoft.edit</id>
<name>Microsoft Edit</name>
<summary>We all edit.</summary>
<screenshots>
<image type="source">https://github.com/microsoft/edit/blob/main/assets/edit_hero_image.png</image>
</screenshots>
<description>
<p>A simple editor for simple needs.</p>
<p>
This editor pays homage to the classic MS-DOS Editor, but with a modern interface and input controls similar to VS Code.
The goal is to provide an accessible editor that even users largely unfamiliar with terminals can easily use.
</p>
</description>
<url type="vcs-browser">https://github.com/microsoft/edit</url>
<developer id="com.microsoft">
<name>Microsoft Corporation</name>
</developer>
<icon type="stock">com.microsoft.edit</icon>
</component>
+13 -1
View File
@@ -2,15 +2,19 @@
An editor that pays homage to the classic MS-DOS Editor, but with a modern interface and input controls similar to VS Code.}
%global crate edit
%bcond rust_nightly 0
%global appid com.microsoft.edit
%global org com.microsoft
%global appstream_component console-application
Name: %{crate}
Version: 1.2.1
Release: 1%?dist
Release: 2%?dist
Summary: A simple editor for simple needs.
SourceLicense: MIT
License: MIT AND (MIT OR Apache-2.0)
URL: https://github.com/microsoft/edit
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
Source1: %{appid}.metainfo.xml
BuildRequires: anda-srpm-macros
BuildRequires: cargo-rpm-macros
%if %{with rust_nightly}
@@ -34,6 +38,11 @@ Packager: Gilver E. <rockgrub@disroot.org>
%install
%crate_install_bin
%{cargo_license_online} > LICENSE.dependencies
install -Dm644 assets/edit.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{appid}.svg
sed -i "s|^Icon=edit$|Icon=%{appid}|g" assets/%{appid}.desktop
install -Dm644 assets/%{appid}.desktop %{buildroot}%{_datadir}/applications/%{appid}.desktop
%terra_appstream -o %{SOURCE1}
%files
%doc CODE_OF_CONDUCT.md
@@ -42,6 +51,9 @@ Packager: Gilver E. <rockgrub@disroot.org>
%license LICENSE
%license LICENSE.dependencies
%{_bindir}/%{name}
%{_metainfodir}/%{appid}.metainfo.xml
%{_iconsdir}/hicolor/scalable/apps/%{appid}.svg
%{_datadir}/applications/%{appid}.desktop
%changelog
* Thu May 22 2025 Gilver E. <rockgrub@disroot.org> - 1.0.0-1