From c5f1f90c4425e9143df6aad558ef68d11e758ebb Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:48:18 -0700 Subject: [PATCH] feat(ruffle): add desktop file (#1769) (#1783) (cherry picked from commit 09a8da62fbbc2ec02e295580d554cd06f2647c2b) Co-authored-by: madomado --- anda/apps/ruffle/ruffle-nightly.spec | 33 +++++++++++++++------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/anda/apps/ruffle/ruffle-nightly.spec b/anda/apps/ruffle/ruffle-nightly.spec index 3e8d9037ce..3dcdd2c9ee 100644 --- a/anda/apps/ruffle/ruffle-nightly.spec +++ b/anda/apps/ruffle/ruffle-nightly.spec @@ -32,32 +32,35 @@ Packager: madonuko %license LICENSE.md %license LICENSE.dependencies %_bindir/ruffle_desktop - -%package devel -Summary: %{summary} -BuildArch: noarch - -%description devel %{_description} - -This package contains library source intended for building other packages which -use the "%{crate}" crate. - -%files devel -%license %{crate_instdir}/LICENSE.md -%doc %{crate_instdir}/CONTRIBUTING.md -%doc %{crate_instdir}/README.md -%{crate_instdir}/ +%_datadir/applications/ruffle_desktop.desktop +%_iconsdir/hicolor/scalable/apps/ruffle_desktop.svg %prep %autosetup -n ruffle-nightly-%ver %cargo_prep_online +cat< ruffle_desktop.desktop +[Desktop Entry] +Version=1.0 +Type=Application +Name=Ruffle Desktop +Comment=%summary +Exec=%_bindir/ruffle_desktop +Icon=ruffle_desktop +Terminal=false +StartupNotify=false +Categories=Application; +MimeType=application/x-shockwave-flash; +EOF + %build %{cargo_license_online} > LICENSE.dependencies %install cd desktop %cargo_install +install -Dm644 assets/logo.svg %buildroot%_iconsdir/hicolor/scalable/apps/ruffle_desktop.svg +install -Dm644 ../ruffle_desktop.desktop %buildroot%_datadir/applications/ruffle_desktop.desktop %changelog * Mon Jul 29 2024 madonuko