From 2f73d6fb1f76fe09d0be55acaf484589536a6858 Mon Sep 17 00:00:00 2001 From: Pornpipat Popum Date: Wed, 19 Nov 2025 23:28:37 +0700 Subject: [PATCH] chore(metainfo): edit (#7446) --- .../devs/edit/com.microsoft.edit.metainfo.xml | 21 +++++++++++++++++++ anda/devs/edit/edit.spec | 14 ++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 anda/devs/edit/com.microsoft.edit.metainfo.xml diff --git a/anda/devs/edit/com.microsoft.edit.metainfo.xml b/anda/devs/edit/com.microsoft.edit.metainfo.xml new file mode 100644 index 0000000000..972f50d221 --- /dev/null +++ b/anda/devs/edit/com.microsoft.edit.metainfo.xml @@ -0,0 +1,21 @@ + + + com.microsoft.edit + Microsoft Edit + We all edit. + + https://github.com/microsoft/edit/blob/main/assets/edit_hero_image.png + + +

A simple editor for simple needs.

+

+ 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. +

+
+ https://github.com/microsoft/edit + + Microsoft Corporation + + com.microsoft.edit +
diff --git a/anda/devs/edit/edit.spec b/anda/devs/edit/edit.spec index 1a04a7b9a9..ffdc63cf68 100644 --- a/anda/devs/edit/edit.spec +++ b/anda/devs/edit/edit.spec @@ -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. %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. %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. - 1.0.0-1