Skip to content

Commit e823a9c

Browse files
authored
Merge pull request #41 from Unity-Technologies/UNI-21512-document-exporters
Uni 21512 document exporters
2 parents 13eea1d + 289caac commit e823a9c

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

README.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,34 @@ See LICENSE.md file in the project root for full license information.
88
Requirements
99
------------
1010

11-
* [FBX SDK C# Bindings v0.0.4a or higher](https://github.com/Unity-Technologies/FbxSharp)
11+
* [FBX SDK C# Bindings](https://github.com/Unity-Technologies/FbxSharp)
1212

1313
Packaging
1414
---------
1515

1616
**On OSX and Linux**
1717

18+
Get the source the first time.
1819
```
1920
# clone the source
2021
git clone https://github.com/Unity-Technologies/FbxExporters.git
22+
cd FbxExporters
23+
```
2124

22-
export PROJECT_PATH=~/Development/FbxExporters
23-
export UNITY3D_PATH=/Applications/Unity\ 2017.1.0f3/Unity.app/Contents/MacOS/Unity
24-
export PACKAGE_NAME=FbxExporters
25-
export PACKAGE_VERSION=0.0.5a
26-
export FBXSDK_PACKAGE_PATH=~/Development/FbxSharpBuild/FbxSdk_0.0.4a.unitypackage
27-
28-
"${UNITY3D_PATH}" -projectPath "${PROJECT_PATH}" -importPackage ${FBXSDK_PACKAGE_PATH} -quit
29-
"${UNITY3D_PATH}" -batchmode -projectPath "${PROJECT_PATH}" -exportPackage Assets/FbxExporters Assets/FbxSdk ${PROJECT_PATH}/${PACKAGE_NAME}_${PACKAGE_VERSION}.unitypackage -quit
25+
Update the source and package:
26+
```
27+
git pull
28+
PROJECT_PATH=`pwd`
29+
FBXSDK_PACKAGE_PATH=`ls -t ../FbxSharpBuild/FbxSdk_*.unitypackage | head -1`
30+
PACKAGE_VERSION=`echo "${FBXSDK_PACKAGE_PATH}" | sed -e 's/.*\([0-9]\{1,\}\.[0-9]*\.[0-9]*[a-z]*\).*/\1/'`
31+
32+
if test `uname -s` = 'Darwin' ; then
33+
UNITY_EDITOR_PATH=/Applications/Unity/Unity.app/Contents/MacOS/Unity
34+
else
35+
UNITY_EDITOR_PATH=/opt/Unity/Editor/Unity/Unity
36+
fi
37+
"${UNITY_EDITOR_PATH}" -projectPath "${PROJECT_PATH}" -importPackage "${FBXSDK_PACKAGE_PATH}" -quit
38+
"${UNITY_EDITOR_PATH}" -batchmode -projectPath "${PROJECT_PATH}" -exportPackage Assets/FbxExporters Assets/FbxSdk "${PROJECT_PATH}/FbxExporters_${PACKAGE_VERSION}.unitypackage" -quit
3039
```
3140

3241
**On Windows**

0 commit comments

Comments
 (0)