diff --git a/anda/misc/vencord-installer/dev.vencord.Installer.desktop b/anda/misc/vencord-installer/dev.vencord.Installer.desktop new file mode 100644 index 0000000000..1bdd1e7134 --- /dev/null +++ b/anda/misc/vencord-installer/dev.vencord.Installer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Vencord Installer +Type=Application +GenericName=Discord Mod Installer +Comment=Install and manage Vencord on your Discord installation +Exec=vencord-installer +Icon=dev.vencord.Installer +Categories=Network;InstantMessaging; +Keywords=discord;vencord;mod; +StartupNotify=true diff --git a/anda/misc/vencord-installer/dev.vencord.Installer.policy b/anda/misc/vencord-installer/dev.vencord.Installer.policy new file mode 100644 index 0000000000..2659c50d04 --- /dev/null +++ b/anda/misc/vencord-installer/dev.vencord.Installer.policy @@ -0,0 +1,20 @@ + + + + Vencord + https://vencord.dev + + + Run the Vencord Installer + Authentication is required to patch Discord with Vencord + + auth_admin + auth_admin + auth_admin_keep + + /usr/bin/vencord-installer + true + + diff --git a/anda/misc/vencord-installer/vencord-installer.spec b/anda/misc/vencord-installer/vencord-installer.spec index db34bea370..9d8e7e6bf7 100644 --- a/anda/misc/vencord-installer/vencord-installer.spec +++ b/anda/misc/vencord-installer/vencord-installer.spec @@ -20,14 +20,18 @@ A cross platform gui/cli app for installing Vencord.} %global godocs README.md Name: vencord-installer -Release: 1%{?dist} +Release: 2%{?dist} Provides: golang-github-vencord-installer = %{version}-%{release} Summary: A cross platform gui/cli app for installing Vencord Packager: Cappy Ishihara License: GPL-3.0-only URL: %{gourl} + Source: %{gosource} Source1: %appid.metainfo.xml +Source2: dev.vencord.Installer.desktop +Source3: dev.vencord.Installer.policy + BuildRequires: go-rpm-macros BuildRequires: go-srpm-macros BuildRequires: anda-srpm-macros @@ -43,6 +47,7 @@ BuildRequires: wayland-devel BuildRequires: libxkbcommon-devel BuildRequires: wayland-protocols-devel BuildRequires: extra-cmake-modules +BuildRequires: desktop-file-utils %description %{common_description} @@ -122,12 +127,17 @@ export CGO_LDFLAGS="${LDFLAGS}" install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %terra_appstream -o %{SOURCE1} +%desktop_file_install %{S:2} +install -Dm644 %{SOURCE3} %{buildroot}%{_datadir}/polkit-1/actions/%{appid} %files %license LICENSE %doc README.md %{_bindir}/vencord-installer %{_datadir}/metainfo/%appid.metainfo.xml +%{_datadir}/applications/%{appid}.desktop +%{_datadir}/polkit-1/actions/%{appid} + %files cli %license LICENSE