From 5292150bb57ef617f3904939ea2ae557476b3828 Mon Sep 17 00:00:00 2001 From: oneRain Date: Tue, 27 Apr 2021 10:41:37 +0800 Subject: [PATCH] chore: change upm repo --- Unity/realtime.package.json | 2 +- script/deploy-upm.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Unity/realtime.package.json b/Unity/realtime.package.json index e5036e9..9155eef 100644 --- a/Unity/realtime.package.json +++ b/Unity/realtime.package.json @@ -5,7 +5,7 @@ "description": "This is leancloud realtime package", "unity": "2019.1", "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"], "author": { diff --git a/script/deploy-upm.sh b/script/deploy-upm.sh index 07002bf..a9f8e4f 100755 --- a/script/deploy-upm.sh +++ b/script/deploy-upm.sh @@ -6,7 +6,7 @@ version=$1 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" -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" @@ -49,7 +49,7 @@ package() { # 生成 .meta 文件并 push 到 GitHub deploy() { upmPath=$1 - tagPrefix=$1 + tagPrefix=$2 # 创建 Unity 工程 unityProject=./Unity/UnityProject @@ -96,6 +96,8 @@ fi upmStoragePath="upm-storage" upmRealtimePath="upm-realtime" +storageTag="storage" +realtimeTag="realtime" mkdir $upmStorage && mkdir $upmRealtime @@ -107,5 +109,5 @@ diff $upmStoragePath/Plugins $upmRealtimePath/Plugins package ./Unity/storage.package.json $upmStoragePath package ./Unity/realtime.package.json $upmRealtimePath -deploy $upmStoragePath -deploy $upmRealtimePath +deploy $upmStoragePath $storageTag +deploy $upmRealtimePath $realtimeTag