コード例 #1
0
            public void GenerateCatalog()
            {
                BuildPipelineCommonTools.FileUtils.CheckDir(BuildPipelineAsset.GetExternalPluginLibsSourcePath(EditorUserBuildSettings.activeBuildTarget.ToString(), channel));
                string resPath = BuildPipelineAsset.GetExternalPluginResSourcePath(EditorUserBuildSettings.activeBuildTarget.ToString(), channel);

                BuildPipelineCommonTools.FileUtils.CheckDir(Path.Combine(resPath, GlobalToolConfigure.Current.SDK.DefaultIconFilterSearchPath));
                BuildPipelineCommonTools.FileUtils.CheckDir(Path.Combine(resPath, GlobalToolConfigure.Current.SDK.SplashLogosFilterSearchPath));
                BuildPipelineCommonTools.FileUtils.CheckDir(Path.Combine(resPath, GlobalToolConfigure.Current.SDK.SplashScreenFilterSearchPath));
                Debug.Log("插件目录生成成功");
            }
コード例 #2
0
 protected void CopyExternalResFolder()
 {
     if (string.IsNullOrEmpty(channel))
     {
         return;
     }
     mInternalPackagingCacheResPath = BuildPipelineAsset.InternalPackagingCacheResPath;
     if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.Android)
     {
         mExternalResPath = BuildPipelineAsset.GetExternalPluginResSourcePath(EditorUserBuildSettings.activeBuildTarget.ToString(), channel);
         BuildPipelineCommonTools.FileUtils.CopyFolder(mExternalResPath, mInternalPackagingCacheResPath);
     }
     else if (EditorUserBuildSettings.activeBuildTarget == BuildTarget.iOS)
     {
         mExternalResPath = BuildPipelineAsset.GetExternalPluginResSourcePath(EditorUserBuildSettings.activeBuildTarget.ToString(), channel);
         BuildPipelineCommonTools.FileUtils.CopyFolder(mExternalResPath, mInternalPackagingCacheResPath);
     }
 }