Skip to content

Commit 7175848

Browse files
committed
make zip file without Assets folder
Before the zip file would contain Assets/Integrations, but we just want Integrations
1 parent 8121edf commit 7175848

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ add_custom_target(
7373
set(MAYA_INTEGRATION_TARGET zip_maya_integration)
7474
set(MAYA_INTEGRATION_ZIP_NAME "unityoneclick_for_maya.zip")
7575
add_custom_command(OUTPUT ${MAYA_INTEGRATION_ZIP_NAME}
76-
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_SOURCE_DIR}/Assets/FbxExporters/${MAYA_INTEGRATION_ZIP_NAME} --format=zip
77-
"${CMAKE_SOURCE_DIR}/Assets/Integrations"
76+
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_SOURCE_DIR}/Assets/FbxExporters/${MAYA_INTEGRATION_ZIP_NAME} --format=zip
77+
"${CMAKE_SOURCE_DIR}/Assets/Integrations"
78+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/Assets
79+
COMMENT "Zipping Maya Integration folder"
7880
)
7981
add_custom_target(${MAYA_INTEGRATION_TARGET} DEPENDS ${MAYA_INTEGRATION_ZIP_NAME})
8082

@@ -88,7 +90,7 @@ add_custom_command(
8890
COMMENT "Creating Unity Package ${PACKAGE_PATH}"
8991
DEPENDS ${MAYA_INTEGRATION_TARGET}
9092
)
91-
add_custom_target(unitypackage ALL DEPENDS ${PACKAGE_PATH} ${FBXSDK_PACKAGE_TARGET})
93+
add_custom_target(unitypackage ALL DEPENDS ${PACKAGE_PATH} ${FBXSDK_PACKAGE_TARGET} ${MAYA_INTEGRATION_TARGET})
9294

9395
enable_testing()
9496
add_test(NAME run-all COMMAND "${UNITY_EDITOR_PATH}" -batchmode -projectPath ${CMAKE_SOURCE_DIR} runEditorTests -quit)

0 commit comments

Comments
 (0)