mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-06 23:19:57 +01:00
Use reverse TLD filenames for installed Linux files where appropriate
This commit is contained in:
parent
7dda835679
commit
dee576bfeb
@ -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()
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
2
dist/azahar-room.desktop
vendored
2
dist/azahar-room.desktop
vendored
@ -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
2
dist/azahar.desktop
vendored
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user