예제 #1
0
    static public void CreateSampleJson()
    {
        var sample = EnvironmentBuilder.BuildEnvironmentOption.CreateSample();
        var jc     = new EnvironmentBuilder.JsonController();

        jc.SaveJson("develop", sample);
    }
예제 #2
0
    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}");
    }