Unify asset building and use find_program to find NPM (#2522)

This commit is contained in:
James Le Cuirot
2024-05-12 17:26:14 +01:00
committed by GitHub
parent 4e49db9fd5
commit 6674090052
3 changed files with 21 additions and 24 deletions

View File

@@ -1,8 +1,2 @@
# unix specific target definitions
# put anything here that applies to both linux and macos
#WebUI build
add_custom_target(web-ui ALL
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
COMMENT "Installing NPM Dependencies and Building the Web UI"
COMMAND sh -c \"npm install && SUNSHINE_BUILD_HOMEBREW=${NPM_BUILD_HOMEBREW} SUNSHINE_SOURCE_ASSETS_DIR=${NPM_SOURCE_ASSETS_DIR} SUNSHINE_ASSETS_DIR=${NPM_ASSETS_DIR} npm run build\") # cmake-lint: disable=C0301