@@ -3943,8 +3943,8 @@ static void BuildABFromPathList(string outPath, string[] list) {
39433943
39443944 // 开始打包
39453945 mMgr . BuildDirs ( buildList ) ;
3946- string abOutPath = outPath + "/Assets/StreamingAssets" ;
3947- mMgr . BuildAssetBundles ( platform , 2 , true , abOutPath ) ;
3946+ mMgr . BuildAssetBundles ( platform , 2 , true , null ) ;
3947+ mMgr . LocalAssetBundlesCopyToOtherProj ( "outPath/Proj" , platform ) ;
39483948 }
39493949
39503950 public static void BuildFromBuildPkg ( )
@@ -3999,7 +3999,7 @@ public static void BuildFromBuildPkg()
39993999 }
40004000
40014001 static public void BuildPlatform ( eBuildPlatform platform , int compressType = 0 , bool isMd5 = false ,
4002- string outPath = null , bool isForceAppend = false )
4002+ bool isForceAppend = false )
40034003 {
40044004 // GetResAllDirPath ();
40054005 // 编���平台`
@@ -4008,10 +4008,9 @@ static public void BuildPlatform(eBuildPlatform platform, int compressType = 0,
40084008 List < string > resList = GetResAllDirPath ( ) ;
40094009 // resList.Add("Assets/Scene");
40104010 mMgr . BuildDirs ( resList ) ;
4011- mMgr . BuildAssetBundles ( platform , compressType , isMd5 , outPath , isForceAppend ) ;
4012- // 增量更新同步一次新工程
4013- if ( isForceAppend || string . IsNullOrEmpty ( outPath ) )
4014- mMgr . LocalAssetBundlesCopyToOtherProj ( "outPath/Proj" , platform ) ;
4011+ mMgr . BuildAssetBundles ( platform , compressType , isMd5 , null , isForceAppend ) ;
4012+
4013+ mMgr . LocalAssetBundlesCopyToOtherProj ( "outPath/Proj" , platform ) ;
40154014 /*
40164015 string outpath = GetAndCreateDefaultOutputPackagePath (platform);
40174016 string outFileName = outpath + "/" + GetCurrentPackageVersion (platform);
@@ -4150,7 +4149,7 @@ static public void OnBuildPlatformWinLz4() {
41504149
41514150 [ MenuItem ( "Assets/平台打包/增量Windows(Lz4)" ) ]
41524151 static public void OnAppendBuildPlatformWinLz4 ( ) {
4153- BuildPlatform ( eBuildPlatform . eBuildWindow , 2 , false , null , true ) ;
4152+ BuildPlatform ( eBuildPlatform . eBuildWindow , 2 , false , true ) ;
41544153 }
41554154
41564155 [ MenuItem ( "Assets/平台打包/Windows Md5(Lz4)" ) ]
@@ -4161,7 +4160,7 @@ static public void OnBuildPlatformWinLz4Md5() {
41614160 [ MenuItem ( "Assets/平台打包/增量Windows Md5(Lz4)" ) ]
41624161 static public void OnAppendBuildPlatformWinLz4Md5 ( )
41634162 {
4164- BuildPlatform ( eBuildPlatform . eBuildWindow , 2 , true , null , true ) ;
4163+ BuildPlatform ( eBuildPlatform . eBuildWindow , 2 , true , true ) ;
41654164 }
41664165
41674166 [ MenuItem ( "Assets/平台打包/OSX(Lz4)" ) ]
@@ -4177,7 +4176,7 @@ static public void OnBuildPlatformOSXLz4Md5() {
41774176 [ MenuItem ( "Assets/平台打包/增量OSX MD5(Lz4)" ) ]
41784177 static public void OnAppendBuildPlatformOSXLz4Md5 ( )
41794178 {
4180- BuildPlatform ( eBuildPlatform . eBuildMac , 2 , true , null , true ) ;
4179+ BuildPlatform ( eBuildPlatform . eBuildMac , 2 , true , true ) ;
41814180 }
41824181
41834182 [ MenuItem ( "Assets/平台打包/Android(Lz4)" ) ]
@@ -4193,7 +4192,7 @@ static public void OnBuildPlatformAndroidLz4Md5() {
41934192 [ MenuItem ( "Assets/平台打包/增量Android MD5(Lz4)" ) ]
41944193 static public void OnAppendBuildPlatformAndroidLz4Md5 ( )
41954194 {
4196- BuildPlatform ( eBuildPlatform . eBuildAndroid , 2 , true , null , true ) ;
4195+ BuildPlatform ( eBuildPlatform . eBuildAndroid , 2 , true , true ) ;
41974196 }
41984197
41994198 [ MenuItem ( "Assets/平台打包/IOS(Lz4)" ) ]
@@ -4210,7 +4209,7 @@ static public void OnBuildPlatformIOSLz4Md5() {
42104209 [ MenuItem ( "Assets/平台打包/增量IOS MD5(Lz4)" ) ]
42114210 static public void OnAppendBuildPlatformIOSLz4Md5 ( )
42124211 {
4213- BuildPlatform ( eBuildPlatform . eBuildIOS , 2 , true , null , true ) ;
4212+ BuildPlatform ( eBuildPlatform . eBuildIOS , 2 , true , true ) ;
42144213 }
42154214
42164215#endif
@@ -4448,11 +4447,8 @@ static private void Cmd_Build_AB(eBuildPlatform platform, int compressType, stri
44484447 if ( ! System . IO . Directory . Exists ( searchProjPath ) ) {
44494448 System . IO . Directory . CreateDirectory ( searchProjPath ) ;
44504449 }
4451-
4452- if ( isAppend )
4453- BuildPlatform ( platform , compressType , true , null , isAppend ) ;
4454- else
4455- BuildPlatform ( platform , compressType , true , targetStreamingAssetsPath , isAppend ) ;
4450+
4451+ BuildPlatform ( platform , compressType , true , isAppend ) ;
44564452 // 处理Manifest
44574453 string rootManifest = targetStreamingAssetsPath ;
44584454 string copyManifest = "Assets/StreamingAssets" ;
@@ -4561,7 +4557,7 @@ static private void Cmd_Build(int compressType, bool isMd5, eBuildPlatform platf
45614557 // 增量
45624558 // build AssetsBundle to Target
45634559
4564- BuildPlatform ( platform , compressType , isMd5 , targetStreamingAssetsPath ) ;
4560+ BuildPlatform ( platform , compressType , isMd5 ) ;
45654561 // 处理Manifest
45664562 string rootManifest = targetStreamingAssetsPath ;
45674563 string copyManifest = "Assets/StreamingAssets" ;
0 commit comments