private static void CompressPackage() { bundlePathList = new List <string>(); string mainBundlePath = PathConfig.AssetRootBundleFilePath; bundlePathList.Add(mainBundlePath); bundlePathList.Add(mainBundlePath + AssetBundleConst.ManifestEx); foreach (string path in pathList) { string fileName = FileEx.GetFileName(path); string resPath = ResourcesLoaderHelper.GetResourcesBundlePathByObjectName(fileName); bundlePathList.Add(resPath); resPath = ResourcesLoaderHelper.GetResourcesBundleManifestPathByObjectName(fileName); bundlePathList.Add(resPath); } foreach (string path in bundlePathList) { Debug.logger.Log("压缩", path + "压缩"); } CompressHelper.CompressFiles(PathConfig.bundleRootPath, bundlePathList.ToArray(), PathConfig.GetPkgExportPath(resVersion)); string MD5 = MD5Utils.BuildFileMd5(PathConfig.GetPkgExportPath(resVersion)); GenVersionInfo(MD5); }