Ejemplo n.º 1
0
        public static void Run()
        {
            BuildLogger.LogHeader("Starting Build Script");

            BuildReport buildReport = null;
            var         buildTarget = BuildUtils.GetBuildTarget();

            switch (buildTarget)
            {
            case BuildTarget.NoTarget:
                EditorApplication.Exit(-1);
                break;

            case BuildTarget.WebGL:
                buildReport = WebGlBuildStrategy.RunBuild();
                break;

            case BuildTarget.Android:
                buildReport = AndroidBuildStrategy.RunBuild();
                break;

            default:
                throw new ArgumentException($"BuildTarget {buildTarget} is not supported");
            }

            ProcessBuildReport(buildReport);
        }