Skip to content

Commit 5039ce7

Browse files
committed
feat: auto install web project
1 parent 1dbcdba commit 5039ce7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Editor/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,7 @@ add_custom_command(
160160
TARGET Editor.Web POST_BUILD
161161
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/Web/dist $<TARGET_FILE_DIR:Editor>/Web
162162
)
163+
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
164+
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/Web/dist ${CMAKE_INSTALL_PREFIX}/Engine/Binaries/Web)")
165+
endif ()
163166
# ---- end web project -------------------------------------------------------------------------------

0 commit comments

Comments
 (0)