From 58d13f6405d6a5df891e786cfdf4cefc5570512d Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Wed, 15 Oct 2025 02:21:39 +0100 Subject: [PATCH] Fix conditionally missing character in copied files --- ThunderstoreCLI/Commands/BuildCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ThunderstoreCLI/Commands/BuildCommand.cs b/ThunderstoreCLI/Commands/BuildCommand.cs index 3cdbeac..24ad279 100644 --- a/ThunderstoreCLI/Commands/BuildCommand.cs +++ b/ThunderstoreCLI/Commands/BuildCommand.cs @@ -225,7 +225,7 @@ public static bool AddPathToArchivePlan(ArchivePlan plan, string sourcePath, str foreach (string filename in Directory.EnumerateFiles(basePath, "*.*", SearchOption.AllDirectories)) { - var targetPath = FormatArchivePath($"{destDirectory}{filename[(basePath.Length + 1)..]}"); + var targetPath = FormatArchivePath($"{destDirectory}{Path.GetRelativePath(basePath, filename)}"); plan.AddPlan(targetPath, () => File.ReadAllBytes(filename)); } return true;