Skip to content

Commit 1959648

Browse files
committed
remove meta files from Integrations before zipping
1 parent e5b1bf5 commit 1959648

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,13 @@ file(GLOB PYC_FILES "${CMAKE_SOURCE_DIR}/Assets/Integrations/Autodesk/maya/scrip
115115
IF( PYC_FILES )
116116
file(REMOVE ${PYC_FILES})
117117
ENDIF()
118+
# remove .meta files from Integrations
119+
file(GLOB_RECURSE META_FILES "${CMAKE_SOURCE_DIR}/Assets/Integrations/*.meta")
118120

119121
add_custom_command(OUTPUT ${MAYA_INTEGRATION_ZIP_NAME}
122+
IF(META_FILES)
123+
COMMAND ${CMAKE_COMMAND} -E remove ${META_FILES}
124+
ENDIF
120125
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_SOURCE_DIR}/Assets/FbxExporters/${MAYA_INTEGRATION_ZIP_NAME} --format=zip
121126
"${CMAKE_SOURCE_DIR}/Assets/Integrations"
122127
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Assets

0 commit comments

Comments
 (0)