From 59e8f3bc45668509fe4e327475e79e90070197f1 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Tue, 10 Dec 2024 09:44:19 -0800 Subject: [PATCH] fix: ruffle (#2590) (#2597) use patch file instead (cherry picked from commit 1bfeef9087488ea019be1389eaf0468dbe19569a) Co-authored-by: madomado --- anda/apps/ruffle/desktop_file_patch.diff | 11 ++++ anda/apps/ruffle/rs.ruffle.Ruffle.desktop | 68 ----------------------- anda/apps/ruffle/ruffle-nightly.spec | 6 +- 3 files changed, 14 insertions(+), 71 deletions(-) create mode 100644 anda/apps/ruffle/desktop_file_patch.diff delete mode 100644 anda/apps/ruffle/rs.ruffle.Ruffle.desktop diff --git a/anda/apps/ruffle/desktop_file_patch.diff b/anda/apps/ruffle/desktop_file_patch.diff new file mode 100644 index 000000000..a8b65566c --- /dev/null +++ b/anda/apps/ruffle/desktop_file_patch.diff @@ -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;مشغل;محاكي;رَسْت diff --git a/anda/apps/ruffle/rs.ruffle.Ruffle.desktop b/anda/apps/ruffle/rs.ruffle.Ruffle.desktop deleted file mode 100644 index 6f2158311..000000000 --- a/anda/apps/ruffle/rs.ruffle.Ruffle.desktop +++ /dev/null @@ -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 diff --git a/anda/apps/ruffle/ruffle-nightly.spec b/anda/apps/ruffle/ruffle-nightly.spec index 7e000f292..286cb8b9d 100644 --- a/anda/apps/ruffle/ruffle-nightly.spec +++ b/anda/apps/ruffle/ruffle-nightly.spec @@ -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 %_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 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