fix: ruffle (#2590) (#2596)

use patch file instead

(cherry picked from commit 1bfeef9087)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2024-12-10 09:44:41 -08:00
committed by GitHub
parent adca267060
commit 129b54ddb5
3 changed files with 14 additions and 71 deletions
+11
View File
@@ -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
View File
@@ -1,68 +0,0 @@
[Desktop Entry]
Type=Application
Name[ar]=رَفل
Name[cs]=Ruffle
Name[es]=Ruffle
Name[fr]=Ruffle
Name[ja]=Ruffle
Name[ko]=Ruffle
Name[nl]=Ruffle
Name[pl]=Ruffle
Name[pt_BR]=Ruffle
Name[pt_PT]=Ruffle
Name[ru]=Ruffle
Name[tr]=Ruffle
Name[uk]=Ruffle
Name[zh_CN]=Ruffle
Name[zh_TW]=Ruffle
Name=Ruffle
GenericName[ar]=مشغل الفلاش
GenericName[cs]=Flash přehrávač
GenericName[es]=Reproductor de Flash
GenericName[fr]=Lecteur Flash
GenericName[ja]=Flashプレイヤー
GenericName[ko]=플래시 플레이어
GenericName[nl]=Flash-speler
GenericName[pl]=Odtwarzacz Flash
GenericName[pt_PT]=Leitor Flash
GenericName[tr]=Flash Oynatıcı
GenericName[zh_CN]=Flash 播放器
GenericName[zh_TW]=Flash 播放器
GenericName=Flash Player
Comment[ar]=شغِّل أفلام وألعاب الفلاش
Comment[cs]=Hrajte Flash hry a přehrajte filmy
Comment[es]=Jugar juegos y ver películas de Flash
Comment[fr]=Jouez à des jeux et regardez des animations en Flash
Comment[ja]=Flashゲームと動画を再生します
Comment[ko]=플래시 게임 & 영상 재생
Comment[nl]=Speel Flash spellen & animaties
Comment[pl]=Graj w gry i odtwarzaj filmy Flash
Comment[pt_BR]=Reproduza jogos e filmes Flash
Comment[pt_PT]=Jogar jogos Flash e reproduzir filmes
Comment[ru]=Проигрывайте Flash-игры и ролики
Comment[tr]=Flash oyunları ve filmleri oynat
Comment[uk]=Відтворюйте Flash ігри та фільми
Comment[zh_CN]=播放 Flash 游戏和动画
Comment[zh_TW]=播放 Flash 遊戲和動畫
Comment=Play Flash games & movies
Icon=rs.ruffle.Ruffle
Exec=ruffle_desktop %u
MimeType=application/x-shockwave-flash;application/vnd.adobe.flash.movie
Categories=AudioVideo;Player;Graphics;Viewer;VectorGraphics;Game
Keywords[ar]=الفلاش;swf;مشغل;محاكي;رَسْت
Keywords[cs]=flash;swf;přehrávač;emulátor;rust
Keywords[de]=flash;swf;spieler;emulator;rust
Keywords[es]=flash;swf;reproductor;emulador;rust
Keywords[fr]=flash;swf;lecteur;émulateur;rust
Keywords[it]=flash;swf;riproduttore;emulatore;rust
Keywords[ja]=flash;swf;プレイヤー;エミュレーター;rust
Keywords[ko]=플래시;swf;플레이어;에뮬레이터;rust
Keywords[nl]=flash;swf;speler;emulator;rust
Keywords[pl]=flash;swf;odtwarzacz;emulator;rust
Keywords[pt_PT]=flash;swf;leitor;emulador;rust
Keywords[ru]=flash;swf;прои́грыватель;эмуля́тор;rust
Keywords[tr]=flash;swf;oynatıcı;öykünücü;rust
Keywords[uk]=flash;swf;програвач;емулятор;rust
Keywords[zh_CN]=flash;swf;播放器;模拟器;rust
Keywords[zh_TW]=flash;swf;播放器;模擬器;rust
Keywords=flash;swf;player;emulator;rust
+3 -3
View File
@@ -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
@@ -38,7 +38,7 @@ Packager: madonuko <mado@fyralabs.com>
%_metainfodir/rs.ruffle.Ruffle.metainfo.xml
%prep
%autosetup -n ruffle-nightly-%ver
%autosetup -n ruffle-nightly-%ver -p1
%cargo_prep_online
%build
@@ -48,7 +48,7 @@ Packager: madonuko <mado@fyralabs.com>
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