static public void CreateSampleJson() { var sample = EnvironmentBuilder.BuildEnvironmentOption.CreateSample(); var jc = new EnvironmentBuilder.JsonController(); jc.SaveJson("develop", sample); }
private void Prepare(StreamWriter logFile) { WriteLog(logFile, "----- Prepare -----"); var jc = new EnvironmentBuilder.JsonController(); var envOption = jc.LoadJson(EnvironmentName); var platformOption = envOption.FindPlatform(BuildTarget.ToString()); // ProductName. PlayerSettings.productName = platformOption.ProductName; WriteLog(logFile, $"PlayerSettings.productName: {PlayerSettings.productName}"); // ApplicationIdentifier. PlayerSettings.applicationIdentifier = platformOption.ApplicationIdentifier; WriteLog(logFile, $"PlayerSettings.applicationIdentifier: {PlayerSettings.applicationIdentifier}"); BuildOptions = envOption.GetBuildOptions(); WriteLog(logFile, $"BuildOptions: {BuildOptions}"); }