chore: optimize packing

oneRain 2021-04-14 11:43:04 +08:00
parent 61a177b0d6
commit 2c872c3a93
9 changed files with 34 additions and 98 deletions

View File

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ReleaseVersion>0.7.3</ReleaseVersion>
<AssemblyName>LiveQuery.Standard</AssemblyName>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\LiveQuery\LiveQuery.csproj" />
<ProjectReference Include="..\..\Realtime\Realtime.Standard\Realtime.Standard.csproj" />
</ItemGroup>
</Project>

View File

@ -14,6 +14,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LiveQuery.Standard\LiveQuery.Standard.csproj" />
<ProjectReference Include="..\LiveQuery\LiveQuery.csproj" />
<ProjectReference Include="..\..\Storage\Storage.Standard\Storage.Standard.csproj" />
</ItemGroup>
</Project>

View File

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ReleaseVersion>0.7.3</ReleaseVersion>
<AssemblyName>LiveQuery.Unity</AssemblyName>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\LiveQuery.AOT\LiveQuery.AOT.csproj" />
<ProjectReference Include="..\..\Realtime\Realtime.Unity\Realtime.Unity.csproj" />
</ItemGroup>
</Project>

View File

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ReleaseVersion>0.7.3</ReleaseVersion>
<AssemblyName>Realtime.Standard</AssemblyName>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Realtime\Realtime.csproj" />
<ProjectReference Include="..\..\Storage\Storage.Standard\Storage.Standard.csproj" />
</ItemGroup>
</Project>

View File

@ -1,14 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ReleaseVersion>0.7.3</ReleaseVersion>
<AssemblyName>Realtime.Unity</AssemblyName>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Realtime.AOT\Realtime.AOT.csproj" />
<ProjectReference Include="..\..\Storage\Storage.Unity\Storage.Unity.csproj" />
</ItemGroup>
</Project>

View File

@ -7,6 +7,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\LiveQuery\LiveQuery.Standard\LiveQuery.Standard.csproj" />
<ProjectReference Include="..\..\LiveQuery\LiveQuery\LiveQuery.csproj" />
<ProjectReference Include="..\..\Storage\Storage.Standard\Storage.Standard.csproj" />
</ItemGroup>
</Project>

View File

@ -7,6 +7,7 @@
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Realtime\Realtime.Standard\Realtime.Standard.csproj" />
<ProjectReference Include="..\..\Realtime\Realtime\Realtime.csproj" />
<ProjectReference Include="..\..\Storage\Storage.Standard\Storage.Standard.csproj" />
</ItemGroup>
</Project>

View File

@ -51,16 +51,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LC.Newtonsoft.Json", "Libs\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LC.Newtonsoft.Json.AOT", "Libs\Newtonsoft.Json.AOT\LC.Newtonsoft.Json.AOT.csproj", "{48FB2373-D0E5-45CA-A227-280DEAE4486F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveQuery.Standard", "LiveQuery\LiveQuery.Standard\LiveQuery.Standard.csproj", "{0C0AE72C-1086-42CC-A415-40C001219B5F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Storage.Standard", "Storage\Storage.Standard\Storage.Standard.csproj", "{6FD7F9B7-CF80-49C9-972B-A416C9F7E335}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Realtime.Unity", "Realtime\Realtime.Unity\Realtime.Unity.csproj", "{B5AA864D-9D31-4F25-95B4-18AF0FAEBE34}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Realtime.Standard", "Realtime\Realtime.Standard\Realtime.Standard.csproj", "{4336DAB5-2C2C-4F7C-85DA-69E0AEA6D837}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveQuery.Unity", "LiveQuery\LiveQuery.Unity\LiveQuery.Unity.csproj", "{0E03294A-F3F6-4BC5-A100-BA75F693111C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -139,26 +131,10 @@ Global
{48FB2373-D0E5-45CA-A227-280DEAE4486F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{48FB2373-D0E5-45CA-A227-280DEAE4486F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{48FB2373-D0E5-45CA-A227-280DEAE4486F}.Release|Any CPU.Build.0 = Release|Any CPU
{0C0AE72C-1086-42CC-A415-40C001219B5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0C0AE72C-1086-42CC-A415-40C001219B5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0C0AE72C-1086-42CC-A415-40C001219B5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0C0AE72C-1086-42CC-A415-40C001219B5F}.Release|Any CPU.Build.0 = Release|Any CPU
{6FD7F9B7-CF80-49C9-972B-A416C9F7E335}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6FD7F9B7-CF80-49C9-972B-A416C9F7E335}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6FD7F9B7-CF80-49C9-972B-A416C9F7E335}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6FD7F9B7-CF80-49C9-972B-A416C9F7E335}.Release|Any CPU.Build.0 = Release|Any CPU
{B5AA864D-9D31-4F25-95B4-18AF0FAEBE34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5AA864D-9D31-4F25-95B4-18AF0FAEBE34}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5AA864D-9D31-4F25-95B4-18AF0FAEBE34}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5AA864D-9D31-4F25-95B4-18AF0FAEBE34}.Release|Any CPU.Build.0 = Release|Any CPU
{4336DAB5-2C2C-4F7C-85DA-69E0AEA6D837}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4336DAB5-2C2C-4F7C-85DA-69E0AEA6D837}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4336DAB5-2C2C-4F7C-85DA-69E0AEA6D837}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4336DAB5-2C2C-4F7C-85DA-69E0AEA6D837}.Release|Any CPU.Build.0 = Release|Any CPU
{0E03294A-F3F6-4BC5-A100-BA75F693111C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0E03294A-F3F6-4BC5-A100-BA75F693111C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0E03294A-F3F6-4BC5-A100-BA75F693111C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0E03294A-F3F6-4BC5-A100-BA75F693111C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{4194FE34-327C-42C2-971F-6B07904E20A5} = {076871D0-BE1F-4AF0-B83E-697C71C0C3B3}
@ -179,11 +155,7 @@ Global
{3D05DEDF-A256-4D3F-B5AE-FB643B8F82F7} = {3B53EFFB-6962-4EED-88FD-F9D6E9650A2D}
{577FD4B4-FE9C-4FF8-9D3D-C42F22C3A9EF} = {3B53EFFB-6962-4EED-88FD-F9D6E9650A2D}
{48FB2373-D0E5-45CA-A227-280DEAE4486F} = {3B53EFFB-6962-4EED-88FD-F9D6E9650A2D}
{0C0AE72C-1086-42CC-A415-40C001219B5F} = {A1A24E0F-6901-4A9A-9BB8-4F586BC7EE17}
{6FD7F9B7-CF80-49C9-972B-A416C9F7E335} = {076871D0-BE1F-4AF0-B83E-697C71C0C3B3}
{B5AA864D-9D31-4F25-95B4-18AF0FAEBE34} = {319A9989-3B69-4AD0-9E43-F6D31C1D2A4A}
{4336DAB5-2C2C-4F7C-85DA-69E0AEA6D837} = {319A9989-3B69-4AD0-9E43-F6D31C1D2A4A}
{0E03294A-F3F6-4BC5-A100-BA75F693111C} = {A1A24E0F-6901-4A9A-9BB8-4F586BC7EE17}
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
version = 0.7.3

View File

@ -1,31 +1,48 @@
#!/bin/sh
prefix=LeanCloud-SDK
storage=Storage
realtime=Realtime
livequery=LiveQuery
standard=Standard
aot=AOT
unity=Unity
releasePath=bin/Release/netstandard2.0
standardReleasePath=./$storage/$storage.$standard/$releasePath
unityReleasePath=./$storage/$storage.$unity/$releasePath
echo $standardReleasePath/$storage.$standard.dll
pack() {
local path=$1;
local dir=$2;
local output=$3;
local copyLink=$4;
local platform=$4;
mkdir $dir
rsync -avz $path $dir
if [ $copyLink == true ] ; then
if [[ $platform == standard ]] ; then
cp $standardReleasePath/$storage.$standard.dll $dir
cp $standardReleasePath/$storage.$standard.pdb $dir
elif [[ $platform == unity ]] ; then
cp $unityReleasePath/$storage.$unity.dll $dir
cp $unityReleasePath/$storage.$unity.pdb $dir
cp ./Unity/link.xml $dir
rm $dir/UnityEngine.dll
fi
zip -r $output $dir
rm -r $dir
}
# Storage
pack ./Storage/Storage.Standard/bin/Release/netstandard2.0/ ./DLLs LeanCloud-SDK-Storage-Standard.zip
pack ./Storage/Storage.Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-Storage-Unity.zip true
pack ./$storage/$storage/$releasePath/ ./DLLs $prefix-$storage-$standard.zip standard
pack ./$storage/$storage.$aot/$releasePath/ ./Plugins $prefix-$storage-$unity.zip unity
# Realtime
pack ./Realtime/Realtime.Standard/bin/Release/netstandard2.0/ ./DLLs LeanCloud-SDK-Realtime-Standard.zip
pack ./Realtime/Realtime.Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-Realtime-Unity.zip true
# LiveQuery
pack ./LiveQuery/LiveQuery.Standard/bin/Release/netstandard2.0/ ./DLLs LeanCloud-SDK-LiveQuery-Standard.zip
pack ./LiveQuery/LiveQuery.Unity/bin/Release/netstandard2.0/ ./Plugins LeanCloud-SDK-LiveQuery-Unity.zip true
pack ./$livequery/$livequery/$releasePath/ ./DLLs $prefix-$realtime-$standard.zip standard
pack ./$livequery/$livequery.$aot/$releasePath/ ./Plugins $prefix-$realtime-$unity.zip unity
# Engine
pack ./Engine/bin/Release/netcoreapp3.1/ ./DLLs LeanCloud-SDK-Engine-Standard.zip