Skip to content

Commit

Permalink
fix: ruffle (#2590)
Browse files Browse the repository at this point in the history
use patch file instead
  • Loading branch information
madonuko authored Dec 10, 2024
1 parent 6049308 commit 1bfeef9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 71 deletions.
11 changes: 11 additions & 0 deletions anda/apps/ruffle/desktop_file_patch.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/desktop/packages/linux/rs.ruffle.Ruffle.desktop
+++ b/desktop/packages/linux/rs.ruffle.Ruffle.desktop
@@ -47,7 +47,7 @@ Comment[zh_CN]=播放 Flash 游戏和动画
Comment[zh_TW]=播放 Flash 遊戲和動畫
Comment=Play Flash games & movies
Icon=rs.ruffle.Ruffle
-Exec=ruffle %u
+Exec=ruffle_desktop %u
MimeType=application/x-shockwave-flash;application/vnd.adobe.flash.movie
Categories=AudioVideo;Player;Graphics;Viewer;VectorGraphics;Game
Keywords[ar]=الفلاش;swf;مشغل;محاكي;رَسْت
68 changes: 0 additions & 68 deletions anda/apps/ruffle/rs.ruffle.Ruffle.desktop

This file was deleted.

6 changes: 3 additions & 3 deletions anda/apps/ruffle/ruffle-nightly.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Summary: A Flash Player emulator written in Rust
License: Apache-2.0 OR MIT
URL: https://ruffle.rs/
Source0: https://github.com/ruffle-rs/ruffle/archive/refs/tags/nightly-%ver.tar.gz
Source1: rs.ruffle.Ruffle.desktop
Patch0: desktop_file_patch.diff
Provides: ruffle
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: anda-srpm-macros mold
Expand All @@ -38,7 +38,7 @@ Packager: madonuko <[email protected]>
%_metainfodir/rs.ruffle.Ruffle.metainfo.xml

%prep
%autosetup -n ruffle-nightly-%ver
%autosetup -n ruffle-nightly-%ver -p1
%cargo_prep_online

%build
Expand All @@ -48,7 +48,7 @@ Packager: madonuko <[email protected]>
cd desktop
%cargo_install
install -Dm644 packages/linux/rs.ruffle.Ruffle.svg %buildroot%_iconsdir/hicolor/scalable/apps/rs.ruffle.Ruffle.svg
install -Dm644 -t %{buildroot}/usr/share/applications %{SOURCE1}
install -Dm644 packages/linux/rs.ruffle.Ruffle.desktop %buildroot%_datadir/applications/rs.ruffle.Ruffle.desktop
install -Dm644 packages/linux/rs.ruffle.Ruffle.metainfo.xml %buildroot%_metainfodir/rs.ruffle.Ruffle.metainfo.xml

%changelog
Expand Down

0 comments on commit 1bfeef9

Please sign in to comment.