Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Oct 23, 2024
1 parent 3875bf3 commit 45eba8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions generator/CSharpReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ public static async Task UpdateVpkCliReference(string outputCliReference)

Directory.CreateDirectory(outputCliReference);

Console.WriteLine("Generating Reference to: " + outputCliReference);

if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) {
Console.WriteLine("Generating Win Setup.exe");
var setupExe = Path.Combine(extractedVpk, "vendor", "setup.exe");
var setupHelp = await RunCaptureStdOut(setupExe, ["-h"]);
File.WriteAllText(
Expand All @@ -159,6 +162,7 @@ public static async Task UpdateVpkCliReference(string outputCliReference)
```
""");

Console.WriteLine("Generating Win Update.exe");
var updateExe = Path.Combine(extractedVpk, "vendor", "update.exe");
var updateHelp = await RunCaptureStdOut(updateExe, ["-h"]);
File.WriteAllText(
Expand All @@ -170,6 +174,7 @@ public static async Task UpdateVpkCliReference(string outputCliReference)
```
""");

Console.WriteLine("Generating Win VPK");
var vpkWindows = await GetVpkHelpForDirective("[win]", vpkDll);
var vpkStringBuilder = new StringBuilder();
var vpkTocSb = new StringBuilder();
Expand All @@ -185,6 +190,7 @@ public static async Task UpdateVpkCliReference(string outputCliReference)
}

if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) {
Console.WriteLine("Generating Linux UpdateNix_x64");
var updateExe = Path.Combine(extractedVpk, "vendor", "UpdateNix_x64");
Util.ChmodFileAsExecutable(updateExe);
var updateHelp = await RunCaptureStdOut(updateExe, ["-h"]);
Expand All @@ -197,6 +203,7 @@ public static async Task UpdateVpkCliReference(string outputCliReference)
```
""");

Console.WriteLine("Generating Linux VPK");
var vpkLinux = await GetVpkHelpForDirective("[linux]", vpkDll);
var vpkStringBuilder = new StringBuilder();
var vpkTocSb = new StringBuilder();
Expand All @@ -212,6 +219,7 @@ public static async Task UpdateVpkCliReference(string outputCliReference)
}

if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) {
Console.WriteLine("Generating MacOS UpdateMac");
var updateExe = Path.Combine(extractedVpk, "vendor", "UpdateMac");
Util.ChmodFileAsExecutable(updateExe);
var updateHelp = await RunCaptureStdOut(updateExe, ["-h"]);
Expand All @@ -224,6 +232,7 @@ public static async Task UpdateVpkCliReference(string outputCliReference)
```
""");

Console.WriteLine("Generating MacOS VPK");
var vpkOsx = await GetVpkHelpForDirective("[osx]", vpkDll);
var vpkStringBuilder = new StringBuilder();
var vpkTocSb = new StringBuilder();
Expand Down

0 comments on commit 45eba8c

Please sign in to comment.