Skip to content

Commit

Permalink
updated to v2.9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
michael811125 committed Dec 6, 2023
1 parent 3179553 commit de6d347
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/[Ss]andbox/
/[Yy]oo/
/[Hh]ybridCLRData/
/Assets/_YooAsset/
/Assets/_YooAsset.meta

# =============== #
# Unity generated #
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void ExportAppConfig(string productName, string appVersion, string
/// <param name="appVersion"></param>
/// <param name="exportPackages"></param>
/// <param name="groupInfos"></param>
/// <param name="packageInfos"></param>
/// <param name="packageInfos"> Set package names to export package infos </param>
/// <param name="activeBuildTarget"></param>
/// <param name="buildTarget"></param>
/// <param name="isClearOutputPath"></param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,27 +617,23 @@ private void _DrawProcessButtonView(OperationType operationType)
if (this.autoReveal) EditorUtility.RevealInFinder($"{outputPath}/{appCfgFileName}");
break;
case OperationType.ExportConfigsAndAppBundlesForCDN:
{
inputPath = this.sourceFolder[(int)this.operationType];
outputPath = $"{this.exportFolder[(int)this.operationType]}/{PatchSetting.setting.rootFolderName}";
List<string> exportDlcPackages = new List<string>();
foreach (var dlcPackage in this.exportIndividualPackages) exportDlcPackages.Add(dlcPackage.packageName);
string[] packageInfos = this.exportAppPackages.Union(exportDlcPackages).ToArray();
BundleHelper.ExportConfigsAndAppBundles(inputPath, outputPath, this.productName, this.appVersion, this.exportAppPackages.ToArray(), this.groupInfos, packageInfos, this.activeBuildTarget, this.buildTarget, true);
BundleHelper.ExportIndividualDlcBundles(inputPath, outputPath, this.productName, this.exportIndividualPackages, this.activeBuildTarget, this.buildTarget, false);
EditorUtility.DisplayDialog("Process Message", "Export Configs And App Bundles For CDN.", "OK");
if (this.autoReveal) EditorUtility.RevealInFinder(outputPath);
}
inputPath = this.sourceFolder[(int)this.operationType];
outputPath = $"{this.exportFolder[(int)this.operationType]}/{PatchSetting.setting.rootFolderName}";
List<string> exportDlcPackages = new List<string>();
foreach (var dlcPackage in this.exportIndividualPackages) exportDlcPackages.Add(dlcPackage.packageName);
string[] packageInfos = this.exportAppPackages.Union(exportDlcPackages).ToArray();
BundleHelper.ExportConfigsAndAppBundles(inputPath, outputPath, this.productName, this.appVersion, this.exportAppPackages.ToArray(), this.groupInfos, packageInfos, this.activeBuildTarget, this.buildTarget, true);
BundleHelper.ExportIndividualDlcBundles(inputPath, outputPath, this.productName, this.exportIndividualPackages, this.activeBuildTarget, this.buildTarget, false);
EditorUtility.DisplayDialog("Process Message", "Export Configs And App Bundles For CDN.", "OK");
if (this.autoReveal) EditorUtility.RevealInFinder(outputPath);
break;
case OperationType.ExportAppBundlesWithoutConfigsForCDN:
{
inputPath = this.sourceFolder[(int)this.operationType];
outputPath = $"{this.exportFolder[(int)this.operationType]}/{PatchSetting.setting.rootFolderName}";
BundleHelper.ExportAppBundles(inputPath, outputPath, this.productName, this.appVersion, this.exportAppPackages.ToArray(), this.activeBuildTarget, this.buildTarget, true);
BundleHelper.ExportIndividualDlcBundles(inputPath, outputPath, this.productName, this.exportIndividualPackages, this.activeBuildTarget, this.buildTarget, false);
EditorUtility.DisplayDialog("Process Message", "Export App Bundles For CDN Without Configs.", "OK");
if (this.autoReveal) EditorUtility.RevealInFinder(outputPath);
}
inputPath = this.sourceFolder[(int)this.operationType];
outputPath = $"{this.exportFolder[(int)this.operationType]}/{PatchSetting.setting.rootFolderName}";
BundleHelper.ExportAppBundles(inputPath, outputPath, this.productName, this.appVersion, this.exportAppPackages.ToArray(), this.activeBuildTarget, this.buildTarget, true);
BundleHelper.ExportIndividualDlcBundles(inputPath, outputPath, this.productName, this.exportIndividualPackages, this.activeBuildTarget, this.buildTarget, false);
EditorUtility.DisplayDialog("Process Message", "Export App Bundles For CDN Without Configs.", "OK");
if (this.autoReveal) EditorUtility.RevealInFinder(outputPath);
break;
case OperationType.ExportIndividualDLCBundlesForCDN:
inputPath = this.sourceFolder[(int)this.operationType];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ public static async UniTask<bool> InitPackage(PackageInfoWithBuild packageInfo,
var createParameters = new OfflinePlayModeParameters();
createParameters.DecryptionServices = _decryption;
createParameters.BreakpointResumeFileSize = BundleConfig.breakpointFileSizeThreshold;
// Only raw file build pipeline need to append extension
if (buildMode.Equals(BundleConfig.BuildMode.RawFileBuildPipeline.ToString()))
createParameters.CacheFileAppendExtension = true;
initializationOperation = package.InitializeAsync(createParameters);
}

Expand All @@ -166,6 +169,9 @@ public static async UniTask<bool> InitPackage(PackageInfoWithBuild packageInfo,
createParameters.DeliveryQueryServices = deliveryQueryService;
createParameters.DeliveryLoadServices = deliveryLoadService;
createParameters.RemoteServices = new HostServers(hostServer, fallbackHostServer);
// Only raw file build pipeline need to append extension
if (buildMode.Equals(BundleConfig.BuildMode.RawFileBuildPipeline.ToString()))
createParameters.CacheFileAppendExtension = true;
initializationOperation = package.InitializeAsync(createParameters);
}

Expand All @@ -177,6 +183,9 @@ public static async UniTask<bool> InitPackage(PackageInfoWithBuild packageInfo,
createParameters.BreakpointResumeFileSize = BundleConfig.breakpointFileSizeThreshold;
createParameters.BuildinQueryServices = builtinQueryService;
createParameters.RemoteServices = new HostServers(hostServer, fallbackHostServer);
// Only raw file build pipeline need to append extension
if (buildMode.Equals(BundleConfig.BuildMode.RawFileBuildPipeline.ToString()))
createParameters.CacheFileAppendExtension = true;
initializationOperation = package.InitializeAsync(createParameters);
}

Expand Down
3 changes: 3 additions & 0 deletions Assets/OxGFrame/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

## [2.9.6] - 2023-12-06
- Fixed a bug where the RawFileBuildPipeline download file was missing an extension.

## [2.9.5] - 2023-12-05
- Added AppPackageInfoWithBuild and DlcPackageInfoWithBuild (BuildMode can be selected when executing on SimulateMode).
```C#
Expand Down
2 changes: 1 addition & 1 deletion Assets/OxGFrame/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.michaelo.oxgframe",
"displayName": "OxGFrame",
"description": "The OxGFrame is a framework based on Unity for accelerating game development. Supports multi-platform Win, OSX, Android, iOS, WebGL.",
"version": "2.9.5",
"version": "2.9.6",
"unity": "2021.3",
"license": "MIT",
"samples": [
Expand Down

0 comments on commit de6d347

Please sign in to comment.