//=====ExportMethodsEnd===== private static IUniBuilderConfiguration CreateCommandParameters() { var argumentsProvider = new ArgumentsProvider(Environment.GetCommandLineArgs()); Debug.LogFormat("\n[CloudBuildHelper] {0} \n", argumentsProvider); var buildTarget = argumentsProvider.GetBuildTarget(); var buildTargetGroup = argumentsProvider.GetBuildTargetGroup(); var buildParameters = new BuildParameters(buildTarget, buildTargetGroup, argumentsProvider) { buildTarget = buildTarget, environmentType = BuildEnvironmentType.UnityCloudBuild, }; if (CloudBuildArgs != null) { buildParameters.buildNumber = CloudBuildArgs.BuildNumber; buildParameters.projectId = CloudBuildArgs.ProjectId; buildParameters.bundleId = CloudBuildArgs.BundleId; buildParameters.buildNumber = CloudBuildArgs.BuildNumber; buildParameters.branch = CloudBuildArgs.ScmBranch; } var result = new EditorBuildConfiguration(argumentsProvider, buildParameters); return(result); }
private static IUniBuilderConfiguration CreateCommandParameters() { var argumentsProvider = new ArgumentsProvider(Environment.GetCommandLineArgs()); Debug.LogFormat("\n[CloudBuildHelper] {0} \n", argumentsProvider); Debug.Log(args.ToString()); var buildTarget = argumentsProvider.GetBuildTarget(); var buildTargetGroup = argumentsProvider.GetBuildTargetGroup(); var buildParameters = new BuildParameters(buildTarget, buildTargetGroup, argumentsProvider) { buildNumber = args.BuildNumber, buildTarget = buildTarget, projectId = args.ProjectId, bundleId = args.BundleId, environmentType = BuildEnvironmentType.UnityCloudBuild, branch = args.ScmBranch, }; var manifest = LoadBuildManifest(); if (manifest != null) { if (manifest.TryGetValue("buildNumber", out var buildNumberValue) && Int32.TryParse(buildNumberValue.ToString(), out var buildNumber)) { buildParameters.buildNumber = buildNumber; } } var result = new EditorBuildConfiguration(argumentsProvider, buildParameters); return(result); }
public UniBuilderConsoleConfiguration(string[] commandLineArgs) { argumentsProvider = new ArgumentsProvider(commandLineArgs); var buildTarget = argumentsProvider.GetBuildTarget(); var buildTargetGroup = argumentsProvider.GetBuildTargetGroup(); buildParameters = new BuildParameters(buildTarget, buildTargetGroup, argumentsProvider); Debug.Log(argumentsProvider); }