update logic code

优化了创建文件的方式。
This commit is contained in:
hevinci
2023-06-09 18:12:03 +08:00
parent f6e94c9514
commit 895dde1cc8
8 changed files with 15 additions and 37 deletions

View File

@@ -52,7 +52,7 @@ namespace YooAsset.Editor
}
string filePath = $"{pipelineOutputDirectory}/{bundleInfo.BundleName}.encrypt";
FileUtility.CreateFile(filePath, encryptResult.EncryptedData);
FileUtility.WriteAllBytes(filePath, encryptResult.EncryptedData);
bundleInfo.EncryptedFilePath = filePath;
bundleInfo.LoadMethod = encryptResult.LoadMethod;
BuildLogger.Log($"Bundle文件加密完成{filePath}");