2019-07-19 16:58:44 +08:00
|
|
|
#!/bin/sh
|
2019-07-22 11:54:20 +08:00
|
|
|
|
2021-04-14 11:43:04 +08:00
|
|
|
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
|
|
|
|
|
2020-04-30 15:36:06 +08:00
|
|
|
pack() {
|
|
|
|
local path=$1;
|
|
|
|
local dir=$2;
|
|
|
|
local output=$3;
|
2021-04-14 11:43:04 +08:00
|
|
|
local platform=$4;
|
2020-04-30 15:36:06 +08:00
|
|
|
mkdir $dir
|
|
|
|
rsync -avz $path $dir
|
2021-04-14 11:43:04 +08:00
|
|
|
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
|
2021-01-20 15:08:28 +08:00
|
|
|
cp ./Unity/link.xml $dir
|
|
|
|
fi
|
2020-04-30 15:36:06 +08:00
|
|
|
zip -r $output $dir
|
|
|
|
rm -r $dir
|
|
|
|
}
|
|
|
|
|
|
|
|
# Storage
|
2021-04-14 11:43:04 +08:00
|
|
|
pack ./$storage/$storage/$releasePath/ ./DLLs $prefix-$storage-$standard.zip standard
|
|
|
|
pack ./$storage/$storage.$aot/$releasePath/ ./Plugins $prefix-$storage-$unity.zip unity
|
2020-04-30 15:36:06 +08:00
|
|
|
|
|
|
|
# Realtime
|
2021-04-14 11:43:04 +08:00
|
|
|
pack ./$livequery/$livequery/$releasePath/ ./DLLs $prefix-$realtime-$standard.zip standard
|
|
|
|
pack ./$livequery/$livequery.$aot/$releasePath/ ./Plugins $prefix-$realtime-$unity.zip unity
|
2021-03-25 11:08:22 +08:00
|
|
|
|
|
|
|
# Engine
|
|
|
|
pack ./Engine/bin/Release/netcoreapp3.1/ ./DLLs LeanCloud-SDK-Engine-Standard.zip
|