File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -8,25 +8,34 @@ See LICENSE.md file in the project root for full license information.
8
8
Requirements
9
9
------------
10
10
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 )
12
12
13
13
Packaging
14
14
---------
15
15
16
16
** On OSX and Linux**
17
17
18
+ Get the source the first time.
18
19
```
19
20
# clone the source
20
21
git clone https://github.com/Unity-Technologies/FbxExporters.git
22
+ cd FbxExporters
23
+ ```
21
24
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
30
39
```
31
40
32
41
** On Windows**
You can’t perform that action at this time.
0 commit comments