Skip to content

Commit

Permalink
feat(ruffle): add desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko committed Jul 29, 2024
1 parent c8fd039 commit 1748814
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions anda/apps/ruffle/ruffle-nightly.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Packager: madonuko <[email protected]>
%license LICENSE.md
%license LICENSE.dependencies
%_bindir/ruffle_desktop
%_datadir/applications/ruffle_desktop.desktop
%_iconsdir/hicolor/scalable/apps/ruffle_desktop.svg

%package devel
Summary: %{summary}
Expand All @@ -52,12 +54,28 @@ use the "%{crate}" crate.
%autosetup -n ruffle-nightly-%ver
%cargo_prep_online

cat<<EOF > 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 <[email protected]>
Expand Down

0 comments on commit 1748814

Please sign in to comment.