Skip to content

Commit

Permalink
fixup diff command
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotr7 committed Feb 1, 2025
1 parent 907672a commit f204cd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/StarBreaker.Cli/DiffCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ public async ValueTask ExecuteAsync(IConsole console)
await console.Output.WriteLineAsync("Deleting old files...");
string[] deleteFolder =
[
Path.Combine(OutputDirectory, "Binaries"),
Path.Combine(OutputDirectory, "P4k"),
Path.Combine(OutputDirectory, "DataCore"),
Path.Combine(OutputDirectory, "P4k"),
Path.Combine(OutputDirectory, "Protobuf"),
Path.Combine(OutputDirectory, "build_manifest.json"),
Path.Combine(OutputDirectory, "DataCore.dcb.zst"),
Path.Combine(OutputDirectory, "StarCitizen.exe.zst"),
];
string[] deleteFile =
[
Expand Down Expand Up @@ -94,8 +96,8 @@ public async ValueTask ExecuteAsync(IConsole console)
await extractDescriptor.ExecuteAsync(fakeConsole);
await console.Output.WriteLineAsync("Descriptor set extracted.");

await ExtractDataCoreIntoZip(p4kFile, Path.Combine(OutputDirectory, "DataCore", "DataCore.dcb.zst"));
await ExtractExecutableIntoZip(exeFile, Path.Combine(OutputDirectory, "Binaries", "StarCitizen.exe.zst"));
await ExtractDataCoreIntoZip(p4kFile, Path.Combine(OutputDirectory, "DataCore.dcb.zst"));
await ExtractExecutableIntoZip(exeFile, Path.Combine(OutputDirectory, "StarCitizen.exe.zst"));
File.Copy(Path.Combine(GameFolder, "build_manifest.id"), Path.Combine(OutputDirectory, "build_manifest.json"), true);
await console.Output.WriteLineAsync("Zipped DataCore and StarCitizen.");

Expand Down
2 changes: 1 addition & 1 deletion src/StarBreaker.Cli/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"commandLineArgs": "diff",
"environmentVariables": {
"GAME_FOLDER": "C:\\Program Files\\Roberts Space Industries\\StarCitizen\\HOTFIX",
"OUTPUT_FOLDER": "C:\\Development\\StarCitizen\\StarCitizenDiff2",
"OUTPUT_FOLDER": "C:\\Development\\StarCitizen\\StarCitizenDiff",
"KEEP_OLD": "false",
"TEXT_FORMAT": "json"
}
Expand Down

0 comments on commit f204cd3

Please sign in to comment.