mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Install desktop file as usual with AppImage
This commit is contained in:
parent
45987adf8a
commit
0a838512e8
@ -43,13 +43,11 @@ if (APPIMAGE_APPRUN_PROGRAM AND APPIMAGE_ASSISTANT_PROGRAM)
|
||||
set (USE_APPIMAGE ON)
|
||||
endif ()
|
||||
|
||||
if (NOT USE_APPIMAGE)
|
||||
configure_file (
|
||||
"${PROJECT_SOURCE_DIR}/resources/linux/application.desktop.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop"
|
||||
@ONLY
|
||||
)
|
||||
endif ()
|
||||
configure_file (
|
||||
"${PROJECT_SOURCE_DIR}/resources/linux/application.desktop.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop"
|
||||
@ONLY
|
||||
)
|
||||
|
||||
set (planetblupi_OUTPUT planetblupi)
|
||||
|
||||
@ -109,6 +107,10 @@ if (BUILD_LINUX)
|
||||
COPY resources/linux/org.blupi.${PB_PACKAGE_NAME}.appdata.xml
|
||||
DESTINATION share/metainfo
|
||||
)
|
||||
file (
|
||||
COPY ${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop
|
||||
DESTINATION share/applications
|
||||
)
|
||||
endif ()
|
||||
|
||||
# Windows stuff
|
||||
@ -361,12 +363,10 @@ if (NOT BUILD_JS)
|
||||
)
|
||||
endif ()
|
||||
|
||||
if (NOT USE_APPIMAGE)
|
||||
install (
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop
|
||||
DESTINATION share/applications
|
||||
)
|
||||
endif ()
|
||||
install (
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop
|
||||
DESTINATION share/applications
|
||||
)
|
||||
|
||||
# Copy libwinpthread-1.dll which seems not be linkable statically
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
|
||||
|
Loading…
x
Reference in New Issue
Block a user