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)
|
set (USE_APPIMAGE ON)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NOT USE_APPIMAGE)
|
configure_file (
|
||||||
configure_file (
|
"${PROJECT_SOURCE_DIR}/resources/linux/application.desktop.in"
|
||||||
"${PROJECT_SOURCE_DIR}/resources/linux/application.desktop.in"
|
"${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop"
|
@ONLY
|
||||||
@ONLY
|
)
|
||||||
)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
set (planetblupi_OUTPUT planetblupi)
|
set (planetblupi_OUTPUT planetblupi)
|
||||||
|
|
||||||
@ -109,6 +107,10 @@ if (BUILD_LINUX)
|
|||||||
COPY resources/linux/org.blupi.${PB_PACKAGE_NAME}.appdata.xml
|
COPY resources/linux/org.blupi.${PB_PACKAGE_NAME}.appdata.xml
|
||||||
DESTINATION share/metainfo
|
DESTINATION share/metainfo
|
||||||
)
|
)
|
||||||
|
file (
|
||||||
|
COPY ${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop
|
||||||
|
DESTINATION share/applications
|
||||||
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Windows stuff
|
# Windows stuff
|
||||||
@ -361,12 +363,10 @@ if (NOT BUILD_JS)
|
|||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NOT USE_APPIMAGE)
|
install (
|
||||||
install (
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop
|
||||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop
|
DESTINATION share/applications
|
||||||
DESTINATION share/applications
|
)
|
||||||
)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# Copy libwinpthread-1.dll which seems not be linkable statically
|
# Copy libwinpthread-1.dll which seems not be linkable statically
|
||||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user