1.4.5报错版本修改
All checks were successful
Plugin Library CI / publish (00.StaryEvo) (push) Successful in 3s
Plugin Library CI / publish (00.BuildOriginality) (push) Successful in 3s
Plugin Library CI / publish (00.StaryEvoTools) (push) Successful in 19s
Plugin Library CI / publish (01.HybridCLR) (push) Successful in 5s
Plugin Library CI / publish (02.InformationSave) (push) Successful in 3s
Plugin Library CI / publish (03.YooAsset) (push) Successful in 32s
Plugin Library CI / publish (04.AudioCore) (push) Successful in 3s
Plugin Library CI / publish (05.TableTextConversion) (push) Successful in 4s
Plugin Library CI / publish (06.UIFarme) (push) Successful in 16s
Plugin Library CI / publish (07.RKTools) (push) Successful in 3s
Plugin Library CI / publish (08.UniTask) (push) Successful in 3s
Plugin Library CI / publish (09.CodeChecker) (push) Successful in 16s
Plugin Library CI / publish (10.StoryEditor) (push) Successful in 3s
Plugin Library CI / publish (10.XNode) (push) Successful in 3s
Plugin Library CI / publish (11.PointCloudTools) (push) Successful in 3s

This commit is contained in:
2026-04-16 22:26:36 +08:00
parent 8a000420af
commit f8ca656870
3 changed files with 30 additions and 30 deletions

View File

@@ -5,6 +5,7 @@ using Cysharp.Threading.Tasks;
#if WECHAT_MINIGAME #if WECHAT_MINIGAME
using WeChatWASM; using WeChatWASM;
#else #else
using System.IO; // 仅在非微信平台使用 using System.IO; // 仅在非微信平台使用
using ICSharpCode.SharpZipLib.Zip; using ICSharpCode.SharpZipLib.Zip;
@@ -40,7 +41,7 @@ namespace Stary.Evo.Unzip
// 检查 ZIP 存在(使用微信 API // 检查 ZIP 存在(使用微信 API
bool fileExists = false; bool fileExists = false;
fs.Access(new AccessOption() fs.Access(new AccessParam()
{ {
path = zipPath, path = zipPath,
success = (res) => fileExists = true, success = (res) => fileExists = true,
@@ -69,7 +70,7 @@ namespace Stary.Evo.Unzip
var progressTask = SimulateProgressAsync(progressCallback, () => reportedProgress >= 1f); var progressTask = SimulateProgressAsync(progressCallback, () => reportedProgress >= 1f);
// 微信原生解压性能最佳C++ 实现) // 微信原生解压性能最佳C++ 实现)
WX.Unzip(new UnzipOption() WX.GetFileSystemManager().Unzip(new UnzipOption()
{ {
zipFilePath = zipPath, zipFilePath = zipPath,
targetPath = extractPath, targetPath = extractPath,
@@ -79,10 +80,7 @@ namespace Stary.Evo.Unzip
progressCallback?.Invoke(1f); progressCallback?.Invoke(1f);
tcs.TrySetResult(); tcs.TrySetResult();
}, },
fail = (err) => fail = (err) => { tcs.TrySetException(new Exception($"微信解压失败: {err.errMsg}")); }
{
tcs.TrySetException(new Exception($"微信解压失败: {err.errMsg}"));
}
}); });
await tcs.Task; await tcs.Task;
@@ -108,7 +106,7 @@ namespace Stary.Evo.Unzip
} }
} }
private static void DeleteWeChatFileSafe(FileSystemManager fs, string path) private static void DeleteWeChatFileSafe(WXFileSystemManager fs, string path)
{ {
try try
{ {
@@ -222,7 +220,7 @@ namespace Stary.Evo.Unzip
#endregion #endregion
#region 3. PC/ System.IO #region 3. PC/ System.IO
#if !UNITY_WEBGL && !WECHAT_MINIGAME
private static async UniTask UnzipStandardAsync(string zipPath, string extractPath, private static async UniTask UnzipStandardAsync(string zipPath, string extractPath,
Action<float> progressCallback, bool deleteAfterExtract) Action<float> progressCallback, bool deleteAfterExtract)
{ {
@@ -244,7 +242,8 @@ namespace Stary.Evo.Unzip
{ {
int total = 0; int total = 0;
foreach (ZipEntry entry in zipFile) foreach (ZipEntry entry in zipFile)
if (entry.IsFile) total++; if (entry.IsFile)
total++;
int processed = 0; int processed = 0;
foreach (ZipEntry entry in zipFile) foreach (ZipEntry entry in zipFile)
@@ -277,7 +276,7 @@ namespace Stary.Evo.Unzip
File.Delete(zipPath); File.Delete(zipPath);
} }
} }
#endif
#endregion #endregion
#region 4. #region 4.
@@ -301,7 +300,7 @@ namespace Stary.Evo.Unzip
{ {
#if WECHAT_MINIGAME #if WECHAT_MINIGAME
bool exists = false; bool exists = false;
WX.GetFileSystemManager().Access(new AccessOption() WX.GetFileSystemManager().Access(new AccessParam()
{ {
path = path, path = path,
success = (res) => exists = true, success = (res) => exists = true,

View File

@@ -7,7 +7,9 @@ using Cysharp.Threading.Tasks;
using Stary.Evo.Unzip; using Stary.Evo.Unzip;
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
#if WEIXINMINIGAME
using WeChatWASM; using WeChatWASM;
#endif
namespace Stary.Evo namespace Stary.Evo
{ {

View File

@@ -6,7 +6,6 @@
"com.audiocore.runtime", "com.audiocore.runtime",
"com.stary.evo.runtime", "com.stary.evo.runtime",
"HybridCLR.Runtime", "HybridCLR.Runtime",
"ImmersalSDK",
"Informationsave.runtime", "Informationsave.runtime",
"DOTween.Modules", "DOTween.Modules",
"com.stary.buildoriginality.runtime", "com.stary.buildoriginality.runtime",