com.typhoon.unitysdk 1.0.51 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,22 @@
1
1
  # 更新日志
2
- ## [1.0.51] - 2023-12-10
2
+ ## [1.0.53] - 2023-12-10
3
3
 
4
4
  ### 修复
5
+ * 拉取最新版本信息时GET请求避免本地缓存问题
6
+
7
+
8
+ ## [1.0.52] - 2023-12-10
9
+
10
+ ### 修复
11
+ * 安装更新报错问题
12
+
13
+
14
+ ## [1.0.51] - 2023-12-10
15
+
16
+ ### 修复
5
17
  * 修复检查自动更新的bug
6
18
 
7
- ### 优化
19
+ ### 优化
8
20
  * 自动更新是查看日志窗口添加安装按钮
9
21
 
10
22
 
@@ -786,7 +786,7 @@ namespace TyphoonUnitySDK
786
786
  public static async Task<(PackageVersionInfo info, string state)> RequestLatestInfo()
787
787
  {
788
788
  //从镜像地址中检查
789
- var url = "https://registry.npmmirror.com/com.typhoon.unitysdk/latest";
789
+ var url = $"https://registry.npmmirror.com/com.typhoon.unitysdk/latest?{Guid.NewGuid().ToString()}";
790
790
  PackageVersionInfo latest = null;
791
791
  var req = await HttpGet(url);
792
792
  if (req.state)
@@ -850,7 +850,7 @@ namespace TyphoonUnitySDK
850
850
  {
851
851
  //如果大于本地版本,提示有更新
852
852
  var click = EditorUtility.DisplayDialogComplex("提示",
853
- $"发现新版本(可从选项中关闭此检查)\n版本:{CheckUpdateCacheData.Default.Latest.Version}\n日期:{CheckUpdateCacheData.Default.Latest.WriteTime.ToShortTimeString()}是否更新?",
853
+ $"发现新版本(可从选项中关闭此检查)\n版本:{CheckUpdateCacheData.Default.Latest.Version}\n日期:{CheckUpdateCacheData.Default.Latest.GetWriteTimeDateString()}\n是否更新?",
854
854
  "是", "否", "查看日志");
855
855
  switch (click)
856
856
  {
@@ -911,7 +911,7 @@ namespace TyphoonUnitySDK
911
911
  if (major)
912
912
  {
913
913
  var click = EditorUtility.DisplayDialogComplex("提示",
914
- $"发现重大版本修复(可从选项中关闭此检查)\n版本:{CheckUpdateCacheData.Default.Latest.Version}\n日期:{CheckUpdateCacheData.Default.Latest.WriteTime.ToShortTimeString()}是否更新?",
914
+ $"发现重大版本修复(可从选项中关闭此检查)\n版本:{CheckUpdateCacheData.Default.Latest.Version}\n日期:{CheckUpdateCacheData.Default.Latest.GetWriteTimeDateString()}\n是否更新?",
915
915
  "是", "否", "查看日志");
916
916
  switch (click)
917
917
  {
@@ -1040,7 +1040,7 @@ namespace TyphoonUnitySDK
1040
1040
  //获取所有版本信息
1041
1041
  public static async Task<(List<PackageVersionInfo> infos, string state)> RequestAllVersionInfo()
1042
1042
  {
1043
- var url = "https://registry.npmmirror.com/com.typhoon.unitysdk";
1043
+ var url = $"https://registry.npmmirror.com/com.typhoon.unitysdk?{Guid.NewGuid().ToString()}";
1044
1044
  var req = await HttpGet(url);
1045
1045
  var versionInfos = new List<PackageVersionInfo>();
1046
1046
  if (req.state)
@@ -1159,7 +1159,7 @@ namespace TyphoonUnitySDK
1159
1159
  depMap["com.typhoon.unitysdk"] = $"{versionInfo.Version}";
1160
1160
  map["dependencies"] = depMap.ToXJson();
1161
1161
  var final = map.ToXJson();
1162
- File.WriteAllText(final, package);
1162
+ File.WriteAllText(package, final);
1163
1163
  Debug.LogError($"更改成功,刷新工程...");
1164
1164
  AssetDatabase.Refresh();
1165
1165
  }
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.51","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.0.51] - 2023-12-10\r\n\r\n### 修复\n* 修复检查自动更新的bug\r\n\r\n### 优化\n* 自动更新是查看日志窗口添加安装按钮\r\n\r\n","major_flag":true,"write_time_stamp":1702190445000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.53","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"2.0.0"}],"version_log":"## [1.0.53] - 2023-12-10\r\n\r\n### 修复\n* 拉取最新版本信息时GET请求避免本地缓存问题\r\n\r\n","major_flag":false,"write_time_stamp":1702191533000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"2.0.0"}}