BundleHelper
Coding Style wiki
using OxGFrame.AssetLoader.Editor;
Methods
ExportAppConfig
Exports the App basic configuration file to the specified path, typically used for built-in StreamingAssets.
Params
string productName: Product namestring appVersion: Application versionstring outputPath: Output target pathbool activeBuildTarget: Whether to use the platform currently set in the editorBuildTarget buildTarget: If not using editor settings, specify the target platform
ExportConfigsAndAppBundles
Exports complete resource packages and configuration files (AppConfig & PatchConfig) to the CDN output path.
Params
string inputPath: Source resource input pathstring outputPath: CDN resource output pathstring productName: Product nameSemanticRule semanticRule: Version semantic rule (affects folder naming logic)string appVersion: Application versionstring[] exportPackages: List of package names to exportList<GroupInfo> groupInfos: Resource grouping information liststring[] packageInfos: Package related informationbool activeBuildTarget: Whether to use the platform currently set in the editorBuildTarget buildTarget: Specified target platformbool isClearOutputPath: Whether to clear the target folder before exporting (default is true)
ExportAppBundles
Exports only the latest resource packages (Bundles) without updating configuration files.
Params
string inputPath: Resource input pathstring outputPath: Resource output pathstring productName: Product nameSemanticRule semanticRule: Semantic rulestring appVersion: Application versionstring[] exportPackages: List of packages to exportbool activeBuildTarget: Whether to use the platform set in the editorBuildTarget buildTarget: Specified target platformbool isClearOutputPath: Whether to clear the target folder
ExportIndividualDlcBundles
Exports independent DLC resource packages.
Params
string inputPath: Resource input pathstring outputPath: Resource output pathstring productName: Product nameList<DlcInfo> dlcInfos: DLC information list (including name and version)bool activeBuildTarget: Whether to use the platform set in the editorBuildTarget buildTarget: Specified target platformbool isClearOutputPath: Whether to clear the target folder
ExportBundleUrlConfig
Exports a configuration file containing CDN addresses and store links, supporting encryption.
Params
string bundleIp: Main CDN server IP or domain namestring bundleFallbackIp: Backup CDN server IP or domain namestring storeLink: Store (Google Play / App Store) linkstring outputPath: Output pathbool cipher: Whether to enable encryption (will be encrypted if enabled)
ParsingGroupInfosByArgs
Parses string format parameters into a list of GroupInfo objects.
Params
string groupInfoArgs: String parameters (format:g1,t1#g2,t1,t2)
ConvertGroupInfosToArgs
Converts a list of GroupInfo objects back to a string format, useful for command line passing.
Params
List<GroupInfo> groupInfos: Group information list
ParsingDlcInfosByArgs
Parses string format parameters into a list of DlcInfo objects.
Params
string dlcInfoArgs: String parameters (format:dlc1,1.0.0#dlc2,1.1.0)
ConvertDlcInfosToArgs
Converts a list of DlcInfo objects back to a string format.
Params
List<DlcInfo> dlcInfos: DLC information list