1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

build: install rebuilt web if available (#4865)

This commit is contained in:
Thomas Weißschuh 2023-02-13 10:52:53 -06:00 committed by GitHub
parent a2faaabe69
commit 05dded12a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -772,7 +772,7 @@ foreach(P cli daemon gtk mac qt utils)
endif()
endforeach()
if(ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT)
if(NOT REBUILD_WEB AND (ENABLE_DAEMON OR ENABLE_GTK OR ENABLE_QT))
tr_install_web(${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})
endif()

View file

@ -87,3 +87,7 @@ add_custom_target("${TR_NAME}-web"
"${CMAKE_CURRENT_BINARY_DIR}/public_html/transmission-app.js.LICENSE.txt"
SOURCES
${WEB_SOURCES})
install(
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/public_html
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${TR_NAME})