Exemple #1
0
        private void CopyOtherData(GUIElementData stepData)
        {
            CopyFilesArguments args = new CopyFilesArguments(StaticPaths.ConvertNameToBuiltOutputPath(this["game"], BuildHelper.BuildTarget), StaticPaths.ConvertNameToMainPath(BuildHelper.BuildTarget))
            {
                Include = "*",
                Exclude = $"{Path.DirectorySeparatorChar}xml{Path.DirectorySeparatorChar}"
            };

            BuildHelper.RunStep(StepType.CopyFiles, args);
        }
Exemple #2
0
 private void CopyLanguageData(GUIElementData stepData)
 {
     if (_currentGuiData.ContainsKey("language"))
     {
         CopyFilesArguments args = new CopyFilesArguments(StaticPaths.ConvertNameToBuiltOutputPath(this["game"], BuildHelper.BuildTarget, this["language"]), StaticPaths.ConvertNameToMainPath(BuildHelper.BuildTarget, this["language"]))
         {
             Include = "*",
             Exclude = $"{Path.DirectorySeparatorChar}xml{Path.DirectorySeparatorChar}"
         };
         BuildHelper.RunStep(StepType.CopyFiles, args);
     }
     else
     {
         BuildHelper.DisplayLine("No language selected.");
         BuildHelper.RunStep(StepType.StepOver, null);
     }
 }
Exemple #3
0
        private void ClearOutputFolder(GUIElementData stepData)
        {
            DeleteFilesArguments args = new DeleteFilesArguments(Path.Combine(StaticPaths.ConvertNameToBuiltOutputPath(this["game"], BuildHelper.BuildTarget), ".."));

            BuildHelper.RunStep(StepType.DeleteFiles, args);
        }