@@ -20,30 +20,32 @@ You can install the package and integrations from the command-line using the fol
20
20
MacOS:
21
21
22
22
# Configure where Unity is installed
23
- UNITY3D_VERSION="2017.1.0f3"
24
-
25
- # Try special versioned location
26
- UNITY3D_PATH="/Applications/Unity ${UNITY3D_VERSION}/Unity.app/Contents/MacOS/Unity"
27
- if [ ! -f "${UNITY3D_PATH}" ]; then
28
- # Fallback to standard location
29
- UNITY3D_PATH=/Applications/Unity/Unity.app/Contents/MacOS/Unity
30
- fi
23
+ # UNITY3D_VERSION=" 2017.1.0f3"
24
+ UNITY3D_PATH="/Applications/Unity${UNITY3D_VERSION}/Unity.app/Contents/MacOS/Unity"
31
25
32
26
# Configure where unitypackage is located
33
27
PACKAGE_PATH=`ls -t ~/Development/FbxExporters/FbxExporters_*.unitypackage | head -1`
34
28
35
29
# Configure which Unity project to install package
36
30
PROJECT_PATH=~/Development/FbxExporters
37
31
38
- # Install FbxExporters package
39
- "${UNITY3D_PATH}" -projectPath "${PROJECT_PATH}" -importPackage ${PACKAGE_PATH} -quit
40
-
41
- # Install Maya2017 Integration
42
- # Use "InstallMaya2017CommandsOnly" to install without UI
43
- "${UNITY3D_PATH}" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya2017 -quit
44
-
45
- # Configuring Maya2017 to auto-load integration
46
- MAYA_PATH=/Applications/Autodesk/maya2017/Maya.app/Contents/bin/maya
47
-
48
- "${MAYA_PATH}" -command "loadPlugin unityOneClickPlugin; pluginInfo -edit -autoload true unityOneClickPlugin; quit;"
32
+ if [ ! -f "${UNITY3D_PATH}" ]; then
33
+ echo "Unity is not installed"
34
+ else
35
+ # Install FbxExporters package
36
+ "${UNITY3D_PATH}" -projectPath "${PROJECT_PATH}" -importPackage ${PACKAGE_PATH} -quit
37
+
38
+ # Install Maya2017 Integration
39
+ # Use "InstallMaya2017CommandsOnly" to install without UI
40
+ "${UNITY3D_PATH}" -batchMode -projectPath "${PROJECT_PATH}" -executeMethod FbxExporters.Integrations.InstallMaya2017 -quit
41
+
42
+ # Configuring Maya2017 to auto-load integration
43
+ MAYA_PATH=/Applications/Autodesk/maya2017/Maya.app/Contents/bin/maya
44
+
45
+ if [ ! -f "${MAYA_PATH}" ]; then
46
+ echo "Maya2017 not installed"
47
+ else
48
+ "${MAYA_PATH}" -command "loadPlugin unityOneClickPlugin; pluginInfo -edit -autoload true unityOneClickPlugin; quit;"
49
+ fi
50
+ fi
49
51
0 commit comments