Пример #1
0
        /// <summary>
        /// 获取IOS打包AB路径
        /// </summary>
        /// <returns></returns>
        public static string GetABExportPatIOS()
        {
            string projectName = AppSetting.MineGameName;
            string basePath    = Application.dataPath + "/";

            if (File.Exists(basePath))
            {
                ToolsHelper.ShowDialog("路径配置错误: " + basePath);
                throw new System.Exception("路径配置错误");
            }
            string path         = null;
            var    platformName = AppSetting.PlatformName;

            path = basePath + platformName + "/" + projectName + "/";
            ToolsHelper.CreateDir(path);
            return(path);
        }
Пример #2
0
        /// <summary>
        /// 获取导出资源路径目录
        /// </summary>
        /// <returns></returns>
        public static string GetExportPath()
        {
            BuildTarget platfrom    = EditorUserBuildSettings.activeBuildTarget;
            string      projectName = AppSetting.MineGameName;
            string      basePath    = AppSetting.ExportResBaseDir;

            if (File.Exists(basePath))
            {
                ToolsHelper.ShowDialog("路径配置错误: " + basePath);
                throw new System.Exception("路径配置错误");
            }
            string path         = null;
            var    platformName = AppSetting.PlatformName;

            path = basePath + platformName + "/" + projectName + "/";
            ToolsHelper.CreateDir(path);
            return(path);
        }