From c93b6cbce1a0e0879a63d0c8e940d6720059d005 Mon Sep 17 00:00:00 2001 From: JieXu Date: Thu, 21 Aug 2025 10:04:37 +0800 Subject: [PATCH] Update package-rhel.sh --- package-rhel.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/package-rhel.sh b/package-rhel.sh index 0eeee8c7..a0345c00 100644 --- a/package-rhel.sh +++ b/package-rhel.sh @@ -681,6 +681,40 @@ if [ -f "%{_builddir}/__PKGROOT__/v2rayn.png" ]; then install -m0644 %{_builddir}/__PKGROOT__/v2rayn.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/v2rayn.png fi +# -------- AppStream (GNOME Software) metadata -------- +install -dm0755 %{buildroot}%{_datadir}/metainfo +cat > %{buildroot}%{_datadir}/metainfo/v2rayn.metainfo.xml << 'EOF' + + + v2rayn.desktop + v2rayN + v2rayN (Avalonia) GUI client + +
    +
  • v2rayN Linux for Red Hat Enterprise Linux
  • +
  • Support vless / vmess / Trojan / http / socks / Anytls / Hysteria2 / Shadowsocks / tuic / WireGuard
  • +
  • Support Red Hat Enterprise Linux / Fedora Linux / Rocky Linux / AlmaLinux / CentOS
  • +
  • For more information, Please visit our website https://github.com/2dust/v2rayN
  • +
+
+ v2rayn.desktop + https://github.com/2dust/v2rayN + https://github.com/2dust/v2rayN/issues + CC0-1.0 + GPL-3.0-only + + v2rayn + + + + + + Network + +
+EOF +# ----------------------------------------------------- + %post /usr/bin/update-desktop-database %{_datadir}/applications >/dev/null 2>&1 || true /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor >/dev/null 2>&1 || true @@ -694,6 +728,7 @@ fi /opt/v2rayN %{_datadir}/applications/v2rayn.desktop %{_datadir}/icons/hicolor/256x256/apps/v2rayn.png +%{_datadir}/metainfo/v2rayn.metainfo.xml SPEC # Autostart injection (inside %install) and %files entry