From 073df3d7eb59ea73f652927a637e2a3f99a584a2 Mon Sep 17 00:00:00 2001 From: Andrea Pappacoda Date: Thu, 28 Apr 2022 23:24:19 +0200 Subject: dist: add AppStream metadata The AppStream file is mostly copied from the one already used by the Flatpak yuzu build: https://github.com/flathub/org.yuzu_emu.yuzu/blob/62fc225acfa0178ddf61be68ad9be60841077263/org.yuzu_emu.yuzu.metainfo.xml As it already defines the application id as org.yuzu_emu.yuzu I renamed the yuzu.desktop and yuzu.xml files so that they match. I've also made some minor tweaks to it, like fixing the capitalization of "yuzu", adding a few keys and sorting them as presented in the documentation. Lastly, I added PrefersNonDefaultGPU=true to the .desktop file so that yuzu is launched with the dedicated graphics card on Linux. --- CMakeLists.txt | 22 +++++++++------- dist/org.yuzu_emu.yuzu.desktop | 12 +++++++++ dist/org.yuzu_emu.yuzu.metainfo.xml | 51 +++++++++++++++++++++++++++++++++++++ dist/org.yuzu_emu.yuzu.xml | 33 ++++++++++++++++++++++++ dist/yuzu.desktop | 12 --------- dist/yuzu.xml | 33 ------------------------ 6 files changed, 109 insertions(+), 54 deletions(-) create mode 100644 dist/org.yuzu_emu.yuzu.desktop create mode 100644 dist/org.yuzu_emu.yuzu.metainfo.xml create mode 100644 dist/org.yuzu_emu.yuzu.xml delete mode 100644 dist/yuzu.desktop delete mode 100644 dist/yuzu.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index dcd4011a5..fe12f3d23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -639,14 +639,18 @@ endif() # ========================= # Install freedesktop.org metadata files, following those specifications: -# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html -# http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html -# http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html +# https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html +# https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html +# https://specifications.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html +# https://www.freedesktop.org/software/appstream/docs/ if(ENABLE_QT AND UNIX AND NOT APPLE) - install(FILES "${PROJECT_SOURCE_DIR}/dist/yuzu.desktop" - DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications") - install(FILES "${PROJECT_SOURCE_DIR}/dist/yuzu.svg" - DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps") - install(FILES "${PROJECT_SOURCE_DIR}/dist/yuzu.xml" - DESTINATION "${CMAKE_INSTALL_PREFIX}/share/mime/packages") + install(FILES "dist/org.yuzu_emu.yuzu.desktop" + DESTINATION "share/applications") + install(FILES "dist/yuzu.svg" + DESTINATION "share/icons/hicolor/scalable/apps" + RENAME "org.yuzu_emu.yuzu.svg") + install(FILES "dist/org.yuzu_emu.yuzu.xml" + DESTINATION "share/mime/packages") + install(FILES "dist/org.yuzu_emu.yuzu.metainfo.xml" + DESTINATION "share/metainfo") endif() diff --git a/dist/org.yuzu_emu.yuzu.desktop b/dist/org.yuzu_emu.yuzu.desktop new file mode 100644 index 000000000..3652a3abc --- /dev/null +++ b/dist/org.yuzu_emu.yuzu.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=yuzu +GenericName=Switch Emulator +Comment=Nintendo Switch video game console emulator +Icon=org.yuzu_emu.yuzu +TryExec=yuzu +Exec=yuzu %f +Categories=Game;Emulator;Qt; +MimeType=application/x-nx-nro;application/x-nx-nso;application/x-nx-nsp;application/x-nx-xci; +Keywords=Nintendo;Switch; diff --git a/dist/org.yuzu_emu.yuzu.metainfo.xml b/dist/org.yuzu_emu.yuzu.metainfo.xml new file mode 100644 index 000000000..5f366137b --- /dev/null +++ b/dist/org.yuzu_emu.yuzu.metainfo.xml @@ -0,0 +1,51 @@ + + + org.yuzu_emu.yuzu + CC0-1.0 + yuzu + Nintendo Switch emulator + +

yuzu is the world's most popular, open-source, Nintendo Switch emulator — started by the creators of Citra.

+

The emulator is capable of running most commercial games at full speed, provided you meet the necessary hardware requirements.

+

For a full list of games yuzu support, please visit our Compatibility page.

+

Check out our website for the latest news on exciting features, monthly progress reports, and more!

+
+ + Game + Emulator + + + switch + emulator + + https://yuzu-emu.org/ + https://github.com/yuzu-emu/yuzu/issues + https://yuzu-emu.org/wiki/faq/ + https://yuzu-emu.org/wiki/home/ + https://yuzu-emu.org/donate/ + https://www.transifex.com/projects/p/yuzu + https://community.citra-emu.org/ + https://github.com/yuzu-emu/yuzu + https://yuzu-emu.org/wiki/contributing/ + org.yuzu_emu.yuzu.desktop + + yuzu + yuzu-cmd + + + 8192 + + + 16384 + + GPL-3.0-or-later + yuzu Emulator Team + + + https://raw.githubusercontent.com/yuzu-emu/yuzu-emu.github.io/master/images/screenshots/001-Super%20Mario%20Odyssey%20.png + https://raw.githubusercontent.com/yuzu-emu/yuzu-emu.github.io/master/images/screenshots/004-The%20Legend%20of%20Zelda%20Skyward%20Sword%20HD.png + https://raw.githubusercontent.com/yuzu-emu/yuzu-emu.github.io/master/images/screenshots/007-Pokemon%20Sword.png + https://raw.githubusercontent.com/yuzu-emu/yuzu-emu.github.io/master/images/screenshots/010-Hyrule%20Warriors%20Age%20of%20Calamity.png + https://raw.githubusercontent.com/yuzu-emu/yuzu-emu.github.io/master/images/screenshots/039-Pok%C3%A9mon%20Mystery%20Dungeon%20Rescue%20Team%20DX.png.png.png + +
diff --git a/dist/org.yuzu_emu.yuzu.xml b/dist/org.yuzu_emu.yuzu.xml new file mode 100644 index 000000000..b52acecc4 --- /dev/null +++ b/dist/org.yuzu_emu.yuzu.xml @@ -0,0 +1,33 @@ + + + + Nintendo Switch homebrew executable + NRO + + + + + + + Nintendo Switch homebrew executable + NSO + + + + + + + Nintendo Switch Package + NSP + + + + + + + Nintendo Switch Card Image + XCI + + + + diff --git a/dist/yuzu.desktop b/dist/yuzu.desktop deleted file mode 100644 index 6cc0704d2..000000000 --- a/dist/yuzu.desktop +++ /dev/null @@ -1,12 +0,0 @@ -[Desktop Entry] -Version=1.0 -Type=Application -Name=yuzu -GenericName=Switch Emulator -Comment=Nintendo Switch video game console emulator -Icon=yuzu -TryExec=yuzu -Exec=yuzu %f -Categories=Game;Emulator;Qt; -MimeType=application/x-nx-nro;application/x-nx-nso;application/x-nx-nsp;application/x-nx-xci; -Keywords=Switch;Nintendo; \ No newline at end of file diff --git a/dist/yuzu.xml b/dist/yuzu.xml deleted file mode 100644 index dd1e30a6b..000000000 --- a/dist/yuzu.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - Nintendo Switch homebrew executable - NRO - - - - - - - Nintendo Switch homebrew executable - NSO - - - - - - - Nintendo Switch Package - NSP - - - - - - - Nintendo Switch Card Image - XCI - - - - \ No newline at end of file -- cgit v1.2.3