Use reverse TLD filenames for installed Linux files where appropriate
Some checks are pending
citra-build / source (push) Waiting to run
citra-build / linux (appimage) (push) Waiting to run
citra-build / linux (fresh) (push) Waiting to run
citra-build / macos (arm64) (push) Waiting to run
citra-build / macos (x86_64) (push) Waiting to run
citra-build / macos-universal (push) Blocked by required conditions
citra-build / windows (msvc) (push) Waiting to run
citra-build / windows (msys2) (push) Waiting to run
citra-build / android (push) Waiting to run
citra-build / ios (push) Waiting to run
citra-format / clang-format (push) Waiting to run
citra-transifex / transifex (push) Waiting to run

This commit is contained in:
OpenSauce04 2025-03-27 00:12:19 +00:00 committed by OpenSauce
parent 7dda835679
commit dee576bfeb
5 changed files with 13 additions and 7 deletions

View file

@ -492,11 +492,14 @@ endif()
# http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html # http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
if(ENABLE_QT AND UNIX AND NOT APPLE) if(ENABLE_QT AND UNIX AND NOT APPLE)
install(FILES "${PROJECT_SOURCE_DIR}/dist/azahar.desktop" install(FILES "${PROJECT_SOURCE_DIR}/dist/azahar.desktop"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications") DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications"
RENAME "org.azahar_emu.Azahar.desktop")
install(FILES "${PROJECT_SOURCE_DIR}/dist/azahar.svg" install(FILES "${PROJECT_SOURCE_DIR}/dist/azahar.svg"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps") DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps"
RENAME "org.azahar_emu.Azahar.svg")
install(FILES "${PROJECT_SOURCE_DIR}/dist/azahar.png" install(FILES "${PROJECT_SOURCE_DIR}/dist/azahar.png"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps") DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps"
install(FILES "${PROJECT_SOURCE_DIR}/dist/azahar.xml" RENAME "org.azahar_emu.Azahar.png")
install(FILES "${PROJECT_SOURCE_DIR}/dist/org.azahar_emu.Azahar.xml"
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/mime/packages") DESTINATION "${CMAKE_INSTALL_PREFIX}/share/mime/packages")
endif() endif()

View file

@ -117,6 +117,9 @@ if (BUNDLE_TARGET_EXECUTE)
set(extra_linuxdeploy_args --plugin qt) set(extra_linuxdeploy_args --plugin qt)
endif() endif()
# Set up app icon
file(COPY_FILE "${source_path}/dist/azahar.svg" "${CMAKE_BINARY_DIR}/dist/org.azahar_emu.Azahar.svg")
message(STATUS "Creating AppDir for executable ${executable_path}") message(STATUS "Creating AppDir for executable ${executable_path}")
execute_process(COMMAND ${CMAKE_COMMAND} -E env execute_process(COMMAND ${CMAKE_COMMAND} -E env
${extra_linuxdeploy_env} ${extra_linuxdeploy_env}
@ -124,7 +127,7 @@ if (BUNDLE_TARGET_EXECUTE)
${extra_linuxdeploy_args} ${extra_linuxdeploy_args}
--plugin checkrt --plugin checkrt
--executable "${executable_path}" --executable "${executable_path}"
--icon-file "${source_path}/dist/azahar.svg" --icon-file "${CMAKE_BINARY_DIR}/dist/org.azahar_emu.Azahar.svg"
--desktop-file "${source_path}/dist/${executable_name}.desktop" --desktop-file "${source_path}/dist/${executable_name}.desktop"
--appdir "${appdir_path}" --appdir "${appdir_path}"
RESULT_VARIABLE linuxdeploy_appdir_result) RESULT_VARIABLE linuxdeploy_appdir_result)

View file

@ -3,7 +3,7 @@ Version=1.0
Type=Application Type=Application
Name=Azahar Room Name=Azahar Room
Comment=Multiplayer room host for Azahar Comment=Multiplayer room host for Azahar
Icon=azahar Icon=org.azahar_emu.Azahar
TryExec=azahar-room TryExec=azahar-room
Exec=azahar-room %f Exec=azahar-room %f
Categories=Game;Emulator; Categories=Game;Emulator;

2
dist/azahar.desktop vendored
View file

@ -6,7 +6,7 @@ GenericName=3DS Emulator
GenericName[fr]=Émulateur 3DS GenericName[fr]=Émulateur 3DS
Comment=Nintendo 3DS video game console emulator Comment=Nintendo 3DS video game console emulator
Comment[fr]=Émulateur de console de jeu Nintendo 3DS Comment[fr]=Émulateur de console de jeu Nintendo 3DS
Icon=azahar Icon=org.azahar_emu.Azahar
TryExec=azahar TryExec=azahar
Exec=azahar %f Exec=azahar %f
Categories=Game;Emulator; Categories=Game;Emulator;