Skip to content

Commit bdf97a1

Browse files
author
Benoit Hudson
committed
Use 7z rather than zip to get around packman.
Also ends up with smaller files.
1 parent e6d8eee commit bdf97a1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ project (UnityFbxExporterEditorPackage NONE)
1010

1111
set(MAYA_INTEGRATION_COPY_TARGET CopyMayaIntegration)
1212
set(MAYA_INTEGRATION_ZIP_TARGET ZipMayaIntegration)
13-
set(MAYA_INTEGRATION_ZIP_NAME "UnityFbxForMaya.zip")
13+
set(MAYA_INTEGRATION_ZIP_NAME "UnityFbxForMaya.7z")
1414

1515
set(MAX_INTEGRATION_ZIP_TARGET ZipMaxIntegration)
16-
set(MAX_INTEGRATION_ZIP_NAME "UnityFbxForMax.zip")
16+
set(MAX_INTEGRATION_ZIP_NAME "UnityFbxForMax.7z")
1717

1818
configure_file("${CMAKE_SOURCE_DIR}/Integrations/Autodesk/maya/scripts/unitySetupUI.mel.in"
1919
"${CMAKE_BINARY_DIR}/Integrations/Autodesk/maya/scripts/unitySetupUI.mel"
@@ -36,7 +36,7 @@ add_custom_command(OUTPUT ${MAYA_INTEGRATION_FILES}
3636
add_custom_target(${MAYA_INTEGRATION_COPY_TARGET} ALL DEPENDS ${MAYA_INTEGRATION_FILES})
3737

3838
add_custom_command(OUTPUT ${MAYA_INTEGRATION_ZIP_NAME}
39-
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_BINARY_DIR}/${MAYA_INTEGRATION_ZIP_NAME} --format=zip
39+
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_BINARY_DIR}/${MAYA_INTEGRATION_ZIP_NAME} --format=7zip
4040
"${CMAKE_BINARY_DIR}/Integrations/Autodesk/maya"
4141
MAIN_DEPENDENCY "${CMAKE_SOURCE_DIR}/Integrations/Autodesk/maya"
4242
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
@@ -46,7 +46,7 @@ add_custom_target(${MAYA_INTEGRATION_ZIP_TARGET} ALL DEPENDS ${MAYA_INTEGRATION_
4646
add_dependencies(${MAYA_INTEGRATION_ZIP_TARGET} ${MAYA_INTEGRATION_COPY_TARGET})
4747

4848
add_custom_command(OUTPUT ${MAX_INTEGRATION_ZIP_NAME}
49-
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_BINARY_DIR}/${MAX_INTEGRATION_ZIP_NAME} --format=zip
49+
COMMAND ${CMAKE_COMMAND} -E tar "cfv" ${CMAKE_BINARY_DIR}/${MAX_INTEGRATION_ZIP_NAME} --format=7zip
5050
"${CMAKE_SOURCE_DIR}/Integrations/Autodesk/max"
5151
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
5252
COMMENT "Zipping 3DsMax Integration folder"

com.unity.formats.fbx/Editor/InstallIntegration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ internal class MayaIntegration : DCCIntegration
9696
{
9797
public override string DccDisplayName { get { return "Maya"; } }
9898

99-
public override string IntegrationZipPath { get { return "UnityFbxForMaya.zip"; } }
99+
public override string IntegrationZipPath { get { return "UnityFbxForMaya.7z"; } }
100100

101101
private string FBX_EXPORT_SETTINGS_PATH { get { return "/Integrations/Autodesk/maya/scripts/unityFbxExportSettings.mel"; } }
102102

@@ -589,7 +589,7 @@ internal class MaxIntegration : DCCIntegration
589589
private const string ExportSettingsTag = "UnityFbxExportSettings";
590590
private const string ImportSettingsTag = "UnityFbxImportSettings";
591591

592-
public override string IntegrationZipPath { get { return "UnityFbxForMax.zip"; } }
592+
public override string IntegrationZipPath { get { return "UnityFbxForMax.7z"; } }
593593

594594
/// <summary>
595595
/// Gets the absolute Unity path for relative path in Integrations folder.

0 commit comments

Comments
 (0)