chore: change upm repo
parent
d6ef88fb3f
commit
5292150bb5
|
@ -5,7 +5,7 @@
|
||||||
"description": "This is leancloud realtime package",
|
"description": "This is leancloud realtime package",
|
||||||
"unity": "2019.1",
|
"unity": "2019.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.leancloud.storage": "https://github.com/leancloud/csharp-sdk.git#upm-storage-__VERSION__"
|
"com.leancloud.storage": "https://github.com/leancloud/csharp-sdk-upm.git#storage-__VERSION__"
|
||||||
},
|
},
|
||||||
"keywords": ["LeanCloud", "Storage"],
|
"keywords": ["LeanCloud", "Storage"],
|
||||||
"author": {
|
"author": {
|
||||||
|
|
|
@ -6,7 +6,7 @@ version=$1
|
||||||
STORAGE_RELEASE_URL="https://github.com/leancloud/csharp-sdk/releases/download/$version/LeanCloud-SDK-Storage-Unity.zip"
|
STORAGE_RELEASE_URL="https://github.com/leancloud/csharp-sdk/releases/download/$version/LeanCloud-SDK-Storage-Unity.zip"
|
||||||
REALTIME_RELEASE_URL="https://github.com/leancloud/csharp-sdk/releases/download/$version/LeanCloud-SDK-Realtime-Unity.zip"
|
REALTIME_RELEASE_URL="https://github.com/leancloud/csharp-sdk/releases/download/$version/LeanCloud-SDK-Realtime-Unity.zip"
|
||||||
|
|
||||||
REPO_GIT_URL="git@github.com:leancloud/csharp-sdk.git"
|
REPO_GIT_URL="git@github.com:leancloud/csharp-sdk-upm.git"
|
||||||
|
|
||||||
UNITY_PATH="/Applications/Unity/Hub/Editor/2020.3.5f1c1/Unity.app/Contents/MacOS/Unity"
|
UNITY_PATH="/Applications/Unity/Hub/Editor/2020.3.5f1c1/Unity.app/Contents/MacOS/Unity"
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ package() {
|
||||||
# 生成 .meta 文件并 push 到 GitHub
|
# 生成 .meta 文件并 push 到 GitHub
|
||||||
deploy() {
|
deploy() {
|
||||||
upmPath=$1
|
upmPath=$1
|
||||||
tagPrefix=$1
|
tagPrefix=$2
|
||||||
|
|
||||||
# 创建 Unity 工程
|
# 创建 Unity 工程
|
||||||
unityProject=./Unity/UnityProject
|
unityProject=./Unity/UnityProject
|
||||||
|
@ -96,6 +96,8 @@ fi
|
||||||
|
|
||||||
upmStoragePath="upm-storage"
|
upmStoragePath="upm-storage"
|
||||||
upmRealtimePath="upm-realtime"
|
upmRealtimePath="upm-realtime"
|
||||||
|
storageTag="storage"
|
||||||
|
realtimeTag="realtime"
|
||||||
|
|
||||||
mkdir $upmStorage && mkdir $upmRealtime
|
mkdir $upmStorage && mkdir $upmRealtime
|
||||||
|
|
||||||
|
@ -107,5 +109,5 @@ diff $upmStoragePath/Plugins $upmRealtimePath/Plugins
|
||||||
package ./Unity/storage.package.json $upmStoragePath
|
package ./Unity/storage.package.json $upmStoragePath
|
||||||
package ./Unity/realtime.package.json $upmRealtimePath
|
package ./Unity/realtime.package.json $upmRealtimePath
|
||||||
|
|
||||||
deploy $upmStoragePath
|
deploy $upmStoragePath $storageTag
|
||||||
deploy $upmRealtimePath
|
deploy $upmRealtimePath $realtimeTag
|
||||||
|
|
Loading…
Reference in New Issue