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})