Example #1
0
 /// <summary>
 /// Get a release pak file path, if we are currently building a patch then get the previous release pak file path, if we are creating a new release this will be the output path
 /// </summary>
 /// <param name="SC"></param>
 /// <param name="Params"></param>
 /// <param name="PakName"></param>
 /// <returns></returns>
 public virtual string GetReleasePakFilePath(DeploymentContext SC, ProjectParams Params, string PakName)
 {
     if (Params.IsGeneratingPatch)
     {
         return(CombinePaths(Params.GetBasedOnReleaseVersionPath(SC, Params.Client), PakName));
     }
     else
     {
         return(CombinePaths(Params.GetCreateReleaseVersionPath(SC, Params.Client), PakName));
     }
 }
    private string GetBatchPath(ProjectParams Params, DeploymentContext SC)
    {
        string BinariesLocation = Path.Combine(Path.GetDirectoryName(Path.GetFullPath(Params.RawProjectPath.FullName)), "Binaries/XXX");

        // override if prebuilt packaged build
        if (Params.Prebuilt)
        {
            BinariesLocation = Path.Combine(Params.BaseStageDirectory, "XXX");
        }
        // override if creating a release version
        if (Params.HasCreateReleaseVersion && SC != null)
        {
            BinariesLocation = Params.GetCreateReleaseVersionPath(SC, Params.Client);
        }

        return(Path.Combine(BinariesLocation, Params.ShortProjectName + ".bat"));
    }