mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-04-10 06:44:14 +00:00
fix(cmake): fix appimage assets directory (#1703)
This commit is contained in:
parent
ed95b50f7a
commit
af0c81f570
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
add_compile_definitions(SUNSHINE_PLATFORM="linux")
|
add_compile_definitions(SUNSHINE_PLATFORM="linux")
|
||||||
|
|
||||||
|
# AppImage
|
||||||
|
if(${SUNSHINE_BUILD_APPIMAGE})
|
||||||
|
# use relative assets path for AppImage
|
||||||
|
string(REPLACE "${CMAKE_INSTALL_PREFIX}" ".${CMAKE_INSTALL_PREFIX}" SUNSHINE_ASSETS_DIR_DEF ${SUNSHINE_ASSETS_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
if(NOT DEFINED SUNSHINE_EXECUTABLE_PATH)
|
||||||
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
set(SUNSHINE_EXECUTABLE_PATH "sunshine")
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,11 +1,5 @@
|
|||||||
# linux specific packaging
|
# linux specific packaging
|
||||||
|
|
||||||
# AppImage
|
|
||||||
if(${SUNSHINE_BUILD_APPIMAGE})
|
|
||||||
# use relative assets path for AppImage
|
|
||||||
string(REPLACE "${CMAKE_INSTALL_PREFIX}" ".${CMAKE_INSTALL_PREFIX}" SUNSHINE_ASSETS_DIR_DEF ${SUNSHINE_ASSETS_DIR})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
install(DIRECTORY "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/assets/"
|
install(DIRECTORY "${SUNSHINE_SOURCE_ASSETS_DIR}/linux/assets/"
|
||||||
DESTINATION "${SUNSHINE_ASSETS_DIR}")
|
DESTINATION "${SUNSHINE_ASSETS_DIR}")
|
||||||
if(${SUNSHINE_BUILD_APPIMAGE} OR ${SUNSHINE_BUILD_FLATPAK})
|
if(${SUNSHINE_BUILD_APPIMAGE} OR ${SUNSHINE_BUILD_FLATPAK})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user