private void BuildGlobal(GUIElementData stepData) { RunExecutableArguments args = new RunExecutableArguments(StaticPaths.WrathEdPath) { Args = $"\"{StaticPaths.ConvertNameToGlobalXmlPath(BuildHelper.BuildTarget)}\" /dr:\"{StaticPaths.ConvertNameToXmlDataPath(BuildHelper.BuildTarget)}\" /iod:\"{StaticPaths.BuiltIntermediatePath}\" /od:\"{StaticPaths.ConvertNameToBuiltOutputDataPath(this["game"], BuildHelper.BuildTarget)}\" /ls:{!(bool)_currentGuiData["linked"]} /gui:false /pc:true /vf:true /ss:true /tl:9 /el:0" }; BuildHelper.RunStep(StepType.RunExecutable, args); }
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); }
private void BuildStaticLow(GUIElementData stepData) { RunExecutableArguments args = new RunExecutableArguments(StaticPaths.WrathEdPath) { // TODO: Args = $"\"{StaticPaths.ConvertNameToStaticXmlPath(BuildHelper.BuildTarget)}\" /dr:\"{StaticPaths.ConvertNameToXmlDataPath(BuildHelper.BuildTarget)}\" /iod:\"{StaticPaths.BuiltIntermediatePath}\" /od:\"{StaticPaths.ConvertNameToBuiltOutputDataPath(this["game"], BuildHelper.BuildTarget)}\" /ls:{!(bool)_currentGuiData["linked"]} /gui:false /pc:true /vf:false /ss:true /tl:9 /el:0 /bcn:LowLOD /bps:\"{StaticPaths.BuiltPath}\\static.manifest\" /art:\".\\Art\" /data:\".;.\\Mods\"" }; BuildHelper.RunStep(StepType.RunExecutable, args); }
private void BuildStep(int step) { if (step == -1) { BuildHelper.DisplayLine("No steps selected."); OnStepSuccess(); return; } GUIElementData stepData = GuiData.Where(x => x.DataKey == "step" + step).FirstOrDefault(); BuildHelper.DisplayLine($"{stepData.Label}..."); stepData.ExecuteAction(stepData); }
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); } }
private void CreateStandalone(GUIElementData stepData) { if (_currentGuiData.ContainsKey("language")) { StringBuilder skuDef = new StringBuilder(); skuDef.AppendLine($"set-exe {Path.Combine(BuildHelper.BuildTarget, "RetailExe", "cnc3game.dat")}"); skuDef.AppendLine($"add-search-path {StaticPaths.ConvertNameToRelativePath(BuildHelper.BuildTarget)}"); skuDef.AppendLine($"add-search-path {StaticPaths.ConvertNameToRelativePath(BuildHelper.BuildTarget, this["language"])}"); CreateStandaloneArguments args = new CreateStandaloneArguments(this["game"], this["language"], this["version"], skuDef.ToString()); BuildHelper.RunStep(StepType.CreateStandalone, args); } else { BuildHelper.DisplayLine("No language selected."); BuildHelper.RunStep(StepType.StepOver, null); } }
private void ClearOutputFolder(GUIElementData stepData) { DeleteFilesArguments args = new DeleteFilesArguments(Path.Combine(StaticPaths.ConvertNameToBuiltOutputPath(this["game"], BuildHelper.BuildTarget), "..")); BuildHelper.RunStep(StepType.DeleteFiles, args); }