Skip to content

Commit

Permalink
fix: delete after
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi committed Mar 2, 2025
1 parent 1567f82 commit 6f11fb4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/BlitzKit.CLI/Functions/Unpacker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ public static async Task Unpack(string[] args)

DlcManifest manifest = await FetchManifest(CONTENT_GROUP, contentBuildId);

Console.WriteLine("Deleting depot...");
Directory.Delete(TEMP_DEPOT_DIR, true);

Console.WriteLine($"Downloading {manifest.PakFiles.Count} containers...");

int done = 0;
foreach (var pakFile in manifest.PakFiles)
{
var localContainerPath = Path.Combine(CONTAINERS_PATH, pakFile.FileName);
Expand All @@ -69,6 +68,9 @@ public static async Task Unpack(string[] args)

Directory.CreateDirectory(CONTAINERS_PATH);
File.WriteAllBytes(localContainerPath, bytes);
done++;

Console.WriteLine($"Downloaded {done}/{manifest.PakFiles.Count} containers...");
}

Console.WriteLine("Moving pre-bundled containers...");
Expand All @@ -78,6 +80,9 @@ var file in Directory.GetFiles(Path.Combine(TEMP_DEPOT_DIR, "Blitz/Content/Paks"
{
File.Move(file, Path.Combine(CONTAINERS_PATH, Path.GetFileName(file)));
}

Console.WriteLine("Deleting depot...");
Directory.Delete(TEMP_DEPOT_DIR, true);
}

public static async Task<DlcManifest> FetchManifest(string group, string build)
Expand Down

0 comments on commit 6f11fb4

Please sign in to comment.