diff --git a/Common/Common-Unity/Common-Unity.csproj b/Common/Common-Unity/Common-Unity.csproj index 7babfa3..3d9d2a8 100644 --- a/Common/Common-Unity/Common-Unity.csproj +++ b/Common/Common-Unity/Common-Unity.csproj @@ -37,7 +37,7 @@ - ..\..\UnityLibs\Newtonsoft.Json.dll + ..\..\Unity\Newtonsoft.Json.dll diff --git a/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj b/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj index 1b3d28c..6f78c23 100644 --- a/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj +++ b/LiveQuery/LiveQuery-Unity/LiveQuery-Unity.csproj @@ -26,7 +26,7 @@ - ..\..\UnityLibs\Newtonsoft.Json.dll + ..\..\Unity\Newtonsoft.Json.dll diff --git a/Realtime/Realtime-Unity/Realtime-Unity.csproj b/Realtime/Realtime-Unity/Realtime-Unity.csproj index fca387a..3b209fc 100644 --- a/Realtime/Realtime-Unity/Realtime-Unity.csproj +++ b/Realtime/Realtime-Unity/Realtime-Unity.csproj @@ -123,7 +123,7 @@ - ..\..\UnityLibs\Newtonsoft.Json.dll + ..\..\Unity\Newtonsoft.Json.dll diff --git a/Storage/Storage-Unity/Storage-Unity.csproj b/Storage/Storage-Unity/Storage-Unity.csproj index 432a4cb..be9a856 100644 --- a/Storage/Storage-Unity/Storage-Unity.csproj +++ b/Storage/Storage-Unity/Storage-Unity.csproj @@ -149,12 +149,12 @@ LCStatusQuery.cs - - - ..\..\UnityLibs\Newtonsoft.Json.dll - - + + + ..\..\Unity\Newtonsoft.Json.dll + + diff --git a/UnityLibs/Newtonsoft.Json.dll b/Unity/Newtonsoft.Json.dll similarity index 100% rename from UnityLibs/Newtonsoft.Json.dll rename to Unity/Newtonsoft.Json.dll diff --git a/Unity/link.xml b/Unity/link.xml new file mode 100644 index 0000000..258d31e --- /dev/null +++ b/Unity/link.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/script/package.sh b/script/package.sh index 96dea75..dd322c4 100644 --- a/script/package.sh +++ b/script/package.sh @@ -4,20 +4,24 @@ pack() { local path=$1; local dir=$2; local output=$3; + local copyLink=$4; mkdir $dir rsync -avz $path $dir + if [ $copyLink == true ] ; then + cp ./Unity/link.xml $dir + fi zip -r $output $dir rm -r $dir } # Storage pack ./Storage/Storage/bin/Release/netstandard2.0/ ./DLLs LeanCloud-SDK-Storage-Standard.zip -pack ./Storage/Storage-Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-Storage-Unity.zip +pack ./Storage/Storage-Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-Storage-Unity.zip true # Realtime pack ./Realtime/Realtime/bin/Release/netstandard2.0/ ./DLLs LeanCloud-SDK-Realtime-Standard.zip -pack ./Realtime/Realtime-Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-Realtime-Unity.zip +pack ./Realtime/Realtime-Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-Realtime-Unity.zip true # LiveQuery pack ./LiveQuery/LiveQuery/bin/Release/netstandard2.0/ ./DLLs LeanCloud-SDK-LiveQuery-Standard.zip -pack ./LiveQuery/LiveQuery-Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-LiveQuery-Unity.zip \ No newline at end of file +pack ./LiveQuery/LiveQuery-Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-LiveQuery-Unity.zip true \ No newline at end of file