csharp-sdk-upm/script/package.sh

31 lines
1.0 KiB
Bash
Raw Normal View History

2019-07-19 16:58:44 +08:00
#!/bin/sh
2019-07-22 11:54:20 +08:00
2020-04-30 15:36:06 +08:00
pack() {
local path=$1;
local dir=$2;
local output=$3;
2021-01-20 15:08:28 +08:00
local copyLink=$4;
2020-04-30 15:36:06 +08:00
mkdir $dir
rsync -avz $path $dir
2021-01-20 15:08:28 +08:00
if [ $copyLink == true ] ; then
cp ./Unity/link.xml $dir
2021-04-07 18:11:04 +08:00
rm $dir/UnityEngine.dll
2021-01-20 15:08:28 +08:00
fi
2020-04-30 15:36:06 +08:00
zip -r $output $dir
rm -r $dir
}
# Storage
2021-04-08 14:10:46 +08:00
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
2020-04-30 15:36:06 +08:00
# Realtime
2021-04-08 14:10:46 +08:00
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
2020-05-13 17:38:33 +08:00
# LiveQuery
2021-04-08 14:10:46 +08:00
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
2021-03-25 11:08:22 +08:00
# Engine
pack ./Engine/bin/Release/netcoreapp3.1/ ./DLLs LeanCloud-SDK-Engine-Standard.zip